Exhibitor mockExhibitor1 = Mockito.mock(Exhibitor.class, Mockito.RETURNS_MOCKS);
Mockito.when(mockExhibitor1.getActivityQueue()).thenReturn(activityQueue);
ConfigManager configManager1 = new TestConfigManager(mockExhibitor1, mockConfigProvider);
Mockito.when(mockExhibitor1.getConfigManager()).thenReturn(configManager1);
MonitorRunningInstance monitorRunningInstance1 = new MockMonitorRunningInstance(mockExhibitor1, providerConfig, "one", restartLatch, exceptions);
Mockito.when(mockExhibitor1.getMonitorRunningInstance()).thenReturn(monitorRunningInstance1);
Mockito.when(mockExhibitor1.getThisJVMHostname()).thenReturn("one");
Mockito.when(mockExhibitor1.getProcessOperations()).thenReturn(mockOperations1);
Mockito.when(mockExhibitor1.getControlPanelValues()).thenReturn(mockControlPanelValues);
Exhibitor mockExhibitor2 = Mockito.mock(Exhibitor.class, Mockito.RETURNS_MOCKS);
Mockito.when(mockExhibitor2.getActivityQueue()).thenReturn(activityQueue);
ConfigManager configManager2 = new TestConfigManager(mockExhibitor2, mockConfigProvider);
Mockito.when(mockExhibitor2.getConfigManager()).thenReturn(configManager2);
MonitorRunningInstance monitorRunningInstance2 = new MockMonitorRunningInstance(mockExhibitor2, providerConfig, "two", restartLatch, exceptions);
Mockito.when(mockExhibitor2.getMonitorRunningInstance()).thenReturn(monitorRunningInstance2);
Mockito.when(mockExhibitor2.getThisJVMHostname()).thenReturn("two");
Mockito.when(mockExhibitor2.getProcessOperations()).thenReturn(mockOperations2);
Mockito.when(mockExhibitor2.getControlPanelValues()).thenReturn(mockControlPanelValues);
Exhibitor mockExhibitor3 = Mockito.mock(Exhibitor.class, Mockito.RETURNS_MOCKS);
Mockito.when(mockExhibitor3.getActivityQueue()).thenReturn(activityQueue);
ConfigManager configManager3 = new TestConfigManager(mockExhibitor3, mockConfigProvider);
Mockito.when(mockExhibitor3.getConfigManager()).thenReturn(configManager3);
MonitorRunningInstance monitorRunningInstance3 = new MockMonitorRunningInstance(mockExhibitor3, providerConfig, "three", restartLatch, exceptions);
Mockito.when(mockExhibitor3.getMonitorRunningInstance()).thenReturn(monitorRunningInstance3);
Mockito.when(mockExhibitor3.getThisJVMHostname()).thenReturn("three");
Mockito.when(mockExhibitor3.getProcessOperations()).thenReturn(mockOperations3);
Mockito.when(mockExhibitor3.getControlPanelValues()).thenReturn(mockControlPanelValues);
try
{
activityQueue.start();
configManager1.start();
configManager2.start();
configManager3.start();
monitorRunningInstance1.start();
monitorRunningInstance2.start();
monitorRunningInstance3.start();
Thread.sleep(1000);
for ( int i = 0; i < attempts; ++i )
{