DOMDataTreeIdentifier implements Immutable, Path<DOMDataTreeIdentifier>, Serializable,
        Comparable<DOMDataTreeIdentifier> { @Override public int hashCode() { return datastoreType.hashCode() * 31 + rootIdentifier.hashCode(); } DOMDataTreeIdentifier(final LogicalDatastoreType datastoreType,
            final YangInstanceIdentifier rootIdentifier); LogicalDatastoreType getDatastoreType(); YangInstanceIdentifier getRootIdentifier(); @Override boolean contains(final DOMDataTreeIdentifier other); DOMDataTreeIdentifier toOptimized(); @Override int hashCode(); @Override boolean equals(final @Nullable Object obj); @Override int compareTo(final DOMDataTreeIdentifier domDataTreeIdentifier); @Override String toString();  }
@Test public void hashCodeTest() { assertEquals("hashCode", REF_TREE.hashCode(), new DOMDataTreeIdentifier(LogicalDatastoreType.OPERATIONAL, REF_YII_IID).hashCode()); assertNotEquals("hashCode", REF_TREE.hashCode(), TEST_DIFF_TREE.hashCode()); }