}
@Test
public void should_serialize_real_partial_mock() throws Exception {
// given
Any mock = mock(Any.class, withSettings().serializable());
when(mock.matches(anyObject())).thenCallRealMethod();
// when
ByteArrayOutputStream serialized = serializeMock(mock);
// then
Any readObject = deserializeMock(serialized, Any.class);
readObject.matches("");
}