GICSCode implements Serializable { @Override public int hashCode() { return getCode().hashCode(); } private  GICSCode(final String code); @FromString static GICSCode of(final String code); static GICSCode of(final int code); @ToString String getCode(); int getCodeInt(); String getDescription(); String getSectorCode(); int getSectorCodeInt(); String getSectorDescription(); static Collection<String> getAllSectorDescriptions(); String getIndustryGroupCode(); int getIndustryGroupCodeInt(); String getIndustryGroupDescription(); static Collection<String> getAllIndustryGroupDescriptions(); String getIndustryCode(); int getIndustryCodeInt(); String getIndustryDescription(); static Collection<String> getAllIndustryDescriptions(); String getSubIndustryCode(); int getSubIndustryCodeInt(); String getSubIndustryDescription(); static Collection<String> getAllSubIndustryDescriptions(); boolean isComplete(); boolean isPartial(); GICSCode toSector(); GICSCode toIndustryGroup(); GICSCode toIndustry(); GICSCode toSubIndustry(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testHashCode() { GICSCode test = GICSCode.of("10"); assertEquals(test.hashCode(), "10".hashCode()); }