Configuration bc = EasyMock.createMock(Configuration.class);
bus.getConfiguration();
org.easymock.classextension.EasyMock.expectLastCall().andReturn(bc);
bc.getChild(ServiceImpl.PORT_CONFIGURATION_URI, sn.toString());
EasyMock.expectLastCall().andReturn(null);
WorkQueueManager wm = EasyMock.createMock(WorkQueueManager.class);
bus.getWorkQueueManager();
EasyMock.expectLastCall().andReturn(wm);
wm.getAutomaticWorkQueue();
EasyMock.expectLastCall().andReturn(null);
org.easymock.classextension.EasyMock.replay(bus);
EasyMock.replay(bc);
EasyMock.replay(wm);