@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof TunnelEndPoint) {
            final TunnelEndPoint that = (TunnelEndPoint) obj;
            return this.getClass() == that.getClass() &&
                    Objects.equals(this.value, that.value);
        }
        return false;
    }
@Test
    public void testEquals() {
        new EqualsTester()
                .addEqualityGroup(endPoint1, sameAsEndPoint1)
                .addEqualityGroup(endPoint2)
                .addEqualityGroup(endPoint3)
                .testEquals();
    }