ClassPKInfoItemIdentifier extends BaseInfoItemIdentifier { @Override public String toString() { StringBundler sb = new StringBundler(5); sb.append("{className="); sb.append(ClassPKInfoItemIdentifier.class.getName()); sb.append(", classPK="); sb.append(_classPK); sb.append("}"); return sb.toString(); } ClassPKInfoItemIdentifier(long classPK); @Override boolean equals(Object object); long getClassPK(); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { ClassPKInfoItemIdentifier classPKInfoItemIdentifier = new ClassPKInfoItemIdentifier(12345L); Assert.assertEquals( "{className=com.liferay.info.item.ClassPKInfoItemIdentifier, " + "classPK=12345}", classPKInfoItemIdentifier.toString()); }