DOMRpcIdentifier { @Override public final String toString() { return MoreObjects.toStringHelper(this).omitNullValues().add("type", type).add("contextReference", getContextReference()).toString(); } 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 toStringTest() { assertTrue("ToString", GLOBAL.toString().contains(GLOBAL.getContextReference().toString()) && GLOBAL.toString() .contains(GLOBAL.getType().toString())); assertTrue("ToString", LOCAL.toString().contains(LOCAL.getContextReference().toString()) && LOCAL.toString() .contains(LOCAL.getType().toString())); }