EasyMock.expect(component.getServiceInstance()).andReturn(originalSource);
EasyMock.expect(component.isSystem()).andReturn(false).atLeastOnce();
EasyMock.expect(component.getServiceInterfaces()).andReturn(interfaces);
EasyMock.replay(component);
parent.register(component);
Source source = parent.locateService(Source.class, "source");
assertNotNull(source);
EasyMock.verify(component);
}
public void testComponentResolution() throws NoSuchMethodException {