package cn.six.mockito;

import org.junit.Test;

import static org.junit.Assert.*;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;

public class BombPresenterTest {

    @Test(expected = BombCallBarException.class)
    public void foo() throws Exception {
        BombPresenter presenter = spy(new BombPresenter());
        doThrow(new BombCallBarException())
                .when(presenter).bar();
        presenter.foo(true);
    }

}

class BombCallBarException extends Exception{
}
@@ -256,27 +256,31 @@
 ected = 
-BombCallBar
+IllegalArgument
 Exceptio
@@ -409,27 +409,31 @@
 row(new 
-BombCallBar
+IllegalArgument
 Exceptio
@@ -518,53 +518,4 @@
 %7D%0A%0A%7D
-%0A%0Aclass BombCallBarException extends Exception%7B%0A%7D

fix failing test cases