public class MethodWithSameNameButDifferentDefinitionTypeTest {
@Test
public void mockGatewayCanInvokeInstanceMethodWhenClassContainsStaticAndInstanceMethodWithSameName() throws Exception {
final ChildA object = createMock(ChildA.class);
StaticAndInstanceMethodWithSameName mock = createMock(StaticAndInstanceMethodWithSameName.class);
expectNew(ChildA.class).andReturn(object);
mock.overloaded((Parent) object);
expectLastCall().once();
replayAll();
new StaticAndInstanceMethodWithSameNameUser().performInstaceInvocation(mock);