private ConnectionConfig createConnectionConfigWithChildCommands()
{
SessionConfig sessionConfig = mock(SessionConfig.class);
NoOpCommand cmd1 = mock(NoOpCommand.class);
NoOpCommand cmd2 = mock(NoOpCommand.class);
List<Command> commands = Arrays.asList((Command)cmd1, (Command)cmd2);
when(sessionConfig.createCommands(CONNECTION_NAME)).thenReturn(commands);
return new ConnectionConfig(CONNECTION_NAME, CONNECTION_FACTORY_NAME, sessionConfig);
}