@Test
public void activate() {

    DefaultSocks5ConnectionsRegistry connectionsRegistry = new DefaultSocks5ConnectionsRegistry();
    
    connectionsRegistry.register(hash, target);
    connectionsRegistry.register(hash, requester);
    
    Assert.assertFalse(connectionsRegistry.isActivated(hash));
    Assert.assertTrue(connectionsRegistry.activate(hash));
    Assert.assertTrue(connectionsRegistry.isActivated(hash));
}