@PrepareForTest( { StaticAndInstanceMethodWithSameNameUser.class, StaticAndInstanceMethodWithSameName.class })
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();