@Test
public void close() {

    DefaultSocks5ConnectionsRegistry connectionsRegistry = new DefaultSocks5ConnectionsRegistry();
    
    connectionsRegistry.register(hash, target);
    connectionsRegistry.register(hash, requester);
    
    Assert.assertEquals(target, connectionsRegistry.getTarget(hash));
    
    connectionsRegistry.close(hash);
    
    Assert.assertNull(connectionsRegistry.getTarget(hash));
}