DOMDataTreeIdentifier implements Immutable, Path<DOMDataTreeIdentifier>, Serializable,
        Comparable<DOMDataTreeIdentifier> { @Override public boolean equals(final @Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof DOMDataTreeIdentifier)) { return false; } DOMDataTreeIdentifier other = (DOMDataTreeIdentifier) obj; return datastoreType == other.datastoreType && rootIdentifier.equals(other.rootIdentifier); } 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 equalsTest() { assertTrue("Equals same", REF_TREE.equals(new DOMDataTreeIdentifier(LogicalDatastoreType.OPERATIONAL, REF_YII_IID))); assertFalse("Different DataStoreType", REF_TREE.equals( new DOMDataTreeIdentifier(LogicalDatastoreType.CONFIGURATION, REF_YII_IID))); assertTrue("Equals same instance", REF_TREE.equals(REF_TREE)); assertFalse("Different object", REF_TREE.equals(new Object())); assertFalse("Different instance", REF_TREE.equals(TEST_DIFF_TREE)); }