List<Class<?>> interfaces = new ArrayList<Class<?>>();
interfaces.add(Source.class);
interfaces.add(Source2.class);
Source serviceSource = new SourceImpl();
SystemService component = EasyMock.createMock(SystemService.class);
EasyMock.expect(component.getName()).andReturn("service").atLeastOnce();
component.getInterface();
EasyMock.expectLastCall().andReturn(Source.class).atLeastOnce();
EasyMock.expect(component.isSystem()).andReturn(true).atLeastOnce();
EasyMock.expect(component.getServiceInstance()).andReturn(serviceSource);
EasyMock.replay(component);
parent.register(component);
SystemAtomicComponent component2 = EasyMock.createMock(SystemAtomicComponent.class);