public void shouldCreateSerializableMethodProxyIfIsSerializableMock() throws Exception {
MethodInterceptorFilter filter = new MethodInterceptorFilter(handler, (MockSettingsImpl) withSettings().serializable());
MethodProxy methodProxy = MethodProxy.create(String.class, String.class, "", "toString", "toString");
// when
MockitoMethodProxy mockitoMethodProxy = filter.createMockitoMethodProxy(methodProxy);
// then
assertThat(mockitoMethodProxy, instanceOf(SerializableMockitoMethodProxy.class));
}