DOMRpcIdentifier { @Override public final int hashCode() { final int prime = 31; int result = 1; result = prime * result + type.hashCode(); result = prime * result + (getContextReference() == null ? 0 : getContextReference().hashCode()); return result; } private  DOMRpcIdentifier(final QName type); static DOMRpcIdentifier create(final QName type); static DOMRpcIdentifier create(final QName type, final @Nullable YangInstanceIdentifier contextReference); final QName getType(); abstract YangInstanceIdentifier getContextReference(); @Override final int hashCode(); @Override final boolean equals(final @Nullable Object obj); @Override final String toString();  }
@Test public void hashCodeTest() { assertEquals("hashCode", GLOBAL.hashCode(), DOMRpcIdentifier.create(LOCAL_QNAME).hashCode()); assertNotEquals("hashCode", GLOBAL.hashCode(), LOCAL.hashCode()); }