assertEquals(value, readObject.objectArgMethod(""));
}
@Test
public void should_verify_called_n_times_for_serialized_mock() throws Exception {
IMethods mock = mock(IMethods.class, withSettings().serializable());
List<?> value = Collections.emptyList();
when(mock.objectArgMethod(anyString())).thenReturn(value);
mock.objectArgMethod("");
// when
ByteArrayOutputStream serialized = serializeMock(mock);
// then
IMethods readObject = deserializeMock(serialized, IMethods.class);
verify(readObject, times(1)).objectArgMethod("");
}