### Question:
JMeterReportServer { public void start() { if (serverThread == null) { stopWhenPossible = false; serverThread = new Thread(new Runnable() { public void run() { startListening(); } }); serverThread.start(); } }  void start(); void stop(); static void main(String[] args);  }### Answer:
@Test @Ignore("In some machines this test fails because of: diferent thread performance?") public void testConnectionLimitExceededError() { log.info("** TEST testConnectionLimitExceededError"); Thread thread1 = new Thread(new Runnable() { public void run() { JMeterReportClient client1 = new JMeterReportClient(LOCALHOST, configService.getPort()); try { client1.getGlobalSummary(JMeterReportServerTestConst.TEST_CONFIG_HTTP); } catch(Exception e) { log.error("client1: ", e); reachedConnectionLimitErrorMsg = e.getMessage(); } } }); Thread thread2 = new Thread(new Runnable() { public void run() { JMeterReportClient client2 = new JMeterReportClient(LOCALHOST, configService.getPort()); try { client2.getGlobalSummary(JMeterReportServerTestConst.TEST_CONFIG_HTTP); } catch(Exception e) { log.error("client2: ", e); reachedConnectionLimitErrorMsg = e.getMessage(); } } }); thread1.start(); thread2.start(); try { thread1.join(); thread2.join(); } catch (InterruptedException e) { log.error("Interrupted: ", e); } Assert.assertNotNull(reachedConnectionLimitErrorMsg); }