}
@Test
public void mockingAndMethodProxyAtTheSameTimeWorks() throws Exception {
replace(method(SuppressMethod.class, "getObjectStatic")).with(new DelegatingInvocationHandler());
SuppressMethod tested = mock(SuppressMethod.class);
when(tested.getObject()).thenReturn("Hello world");
assertSame(SuppressMethod.OBJECT, SuppressMethod.getObjectStatic());
assertEquals("Hello world", tested.getObject());
verify(tested).getObject();
}