@Override
    public boolean equals(Object o) {
        return o instanceof DnsRecordType && ((DnsRecordType) o).intValue == intValue;
    }
@Test
    public void testEquals() throws Exception {
        for (DnsRecordType t1 : allTypes()) {
            for (DnsRecordType t2 : allTypes()) {
                if (t1 != t2) {
                    assertNotEquals(t1, t2);
                }
            }
        }
    }