@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof TunnelName) {
            final TunnelName that = (TunnelName) obj;
            return this.getClass() == that.getClass()
                    && Objects.equals(this.str, that.str);
        }
        return false;
    }
@Test
    public void testEquals() {
        new EqualsTester().addEqualityGroup(name1, sameAsName1)
                .addEqualityGroup(name2).testEquals();
    }