super(testName);
}
public void testIntroduceInterfacesPart1() {
IEmployee implementor = mock(IEmployee.class);
IManager target = mock(IManager.class);
DynamicImplementorIntroductor introductor = new DynamicImplementorIntroductor(implementor);
Object introduced = introductor.introduceInterfaces(target, new Class[]{IEmployee.class});
assertTrue(introduced instanceof IEmployee);
assertTrue(introduced instanceof IManager);
final IManager manager = (IManager) introduced;
manager.getManagedEmployees();
super.checking(new Expectations(){{
oneOf(manager).getManagedEmployees();
}});
final IEmployee employee = (IEmployee) introduced;