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 = IllegalArgumentException.class)
    public void foo() throws Exception {
        BombPresenter presenter = spy(new BombPresenter());
        doThrow(new IllegalArgumentException())
                .when(presenter).bar();
        presenter.foo(true);
    }

}
@@ -256,31 +256,27 @@
 ected = 
-IllegalArgument
+BombCallBar
 Exceptio
@@ -409,23 +409,19 @@
 new 
-IllegalArgument
+BombCallBar
 Exce
@@ -506,8 +506,64 @@
     %7D%0A%0A%7D
+%0A%0Aclass BombCallBarException extends RuntimeException%7B%0A%7D

improve test cases