assertEquals("bar", mock.simpleMethod("whatever"));
}
@Test
public void shouldStubConsecutivelyWithCallRealMethod() throws Exception {
MethodsImpl mock = mock(MethodsImpl.class);
willReturn("foo").willCallRealMethod()
.given(mock).simpleMethod();
assertEquals("foo", mock.simpleMethod());
assertEquals(null, mock.simpleMethod());
}