@Test
public void basicConnectionNoOKErrorTest (@Mocked final Socket socket, @Mocked final InetAddress inetAddress,
                                              @Mocked final BufferedReader bufferedReader) throws Exception {

    new Expectations() {{
        InetAddress.getByName(anyString);
        result = loopbackAddress;
        bufferedReader.readLine();
        returns(AbstractQoSTask.QOS_SERVER_PROTOCOL_VERSION,
                "ACCEPT",
                "NOT A PROTOCOL");
        socket.getOutputStream();
        times = 1;
        result = testOutputStream;
    }};
    controlConnection = new QoSControlConnection(clientHolder, testParameter);
    controlConnection.connect();
    assertNull("Control socket is not null despite protocol error", controlConnection.controlSocket);
    assertFalse("QoSControlConnection reports as running", controlConnection.isRunning.get());
    assertTrue("QoSControlConnection does not show connection issue", controlConnection.couldNotConnect.get());
}