ClientStatusTracker { public boolean setClientReachable(String endpoint) { return transitState(endpoint, ClientState.UNREACHABLE, ClientState.REACHABLE) || clientStatus.putIfAbsent(endpoint, ClientState.REACHABLE) == null; }  boolean setClientUnreachable(String endpoint); boolean setClientReachable(String endpoint); boolean startClientReceiving(String endpoint); boolean stopClientReceiving(String endpoint); void clearClientState(String endpoint);  }
@Test public void set_client_reachable() throws Exception { assertTrue("Expected client status set to reachable", instanceUnderTest.setClientReachable(ENDPOINT)); }