### Question:
ServerLogReceiver extends AbstractLogReceiver { @Override public int getConnectionsCount() { int cnt = 0; for (final AbstractLogReceiver receiver : childReceivers) { cnt += receiver.getConnectionsCount(); } return cnt; } ServerLogReceiver(final int listenPort, final LogRepositoryUpdate logRepository); @Override void dispose(); @Override int getConnectionsCount(); @Override void run(); @Override boolean isServerMode(); @Override void pauseReceivingLogs(); @Override void resumeReceivingLogs();  }### Answer:
@Test public void testGetConnectionsCount() throws Exception { assertEquals(0, receiver.getConnectionsCount()); connectToServer(); Thread.sleep(1000); assertEquals(1, receiver.getConnectionsCount()); }