}
private TestInstance createTestInstanceWithOneParticipant()
{
TestInstance testInstance = mock(TestInstance.class);
List<CommandForClient> commands = Arrays.asList(
new CommandForClient(CLIENT1_CONFIGURED_NAME, new NoOpCommand()));
when(testInstance.createCommands()).thenReturn(commands);
when(testInstance.getTotalNumberOfParticipants()).thenReturn(1);
when(testInstance.getName()).thenReturn(TEST_NAME);
List<QueueConfig> queues = mock(List.class);
when(testInstance.getQueues()).thenReturn(queues);
when(testInstance.getIterationNumber()).thenReturn(ITERATION_NUMBER);
return testInstance;
}