}
@Test
public void shouldCreateCorrectSignatures() throws Exception {
// given
MethodProxy proxy = MethodProxy.create(String.class, Integer.class, "a", "b", "c");
SerializableMockitoMethodProxy serializableMockitoMethodProxy = new SerializableMockitoMethodProxy(proxy);
serializableMockitoMethodProxy.methodProxy = null;
// when
MethodProxy methodProxy = (MethodProxy) Whitebox.invokeMethod(serializableMockitoMethodProxy, "getMethodProxy", new Object[0]);
// then
assertEquals("a", methodProxy.getSignature().getDescriptor());
assertEquals("b", methodProxy.getSignature().getName());
assertEquals("c", methodProxy.getSuperName());
}