log.info("RESTARTED CONNECTOR");
// Wait until a failure has been detected on the control connection.
Thread.sleep(TEST_PING_FREQUENCY * MAX_RETRIES * 8);
ServerInvoker callbackServerInvoker = callbackConnector.getServerInvoker();
field = BisocketServerInvoker.class.getDeclaredField("controlConnectionThreadMap");
field.setAccessible(true);
Map controlConnectionThreadMap = (Map) field.get(callbackServerInvoker);
assertEquals(0, controlConnectionThreadMap.size());