KindAndName { @Override public int hashCode() { int result = kind.hashCode(); result = 31 * result + name.hashCode(); return result; } KindAndName(String kind, String name);  KindAndName(HasMetadata item); String getKind(); String getName(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testHashCode(){ KindAndName kindAndName = new KindAndName("kindTest","nameTest"); KindAndName secondKindAndName = new KindAndName("",""); assertEquals(1812739127,kindAndName.hashCode()); assertEquals(0,secondKindAndName.hashCode()); }