@Override
    public Endpoint copy() {
        return new Endpoint(this.ip, this.port);
    }
@Test
    public void testCopy() {
        final Endpoint ep = new Endpoint("192.168.1.1", 8080);
        assertEquals("192.168.1.1:8080", ep.toString());
        assertEquals("192.168.1.1:8080", ep.toString());
        assertEquals(ep, ep.copy());
    }