GroupKeyInfoItemIdentifier extends BaseInfoItemIdentifier { @Override public String toString() { StringBundler sb = new StringBundler(7); sb.append("{className="); sb.append(GroupKeyInfoItemIdentifier.class.getName()); sb.append(", _groupId="); sb.append(_groupId); sb.append(", _key="); sb.append(_key); sb.append("}"); return sb.toString(); } GroupKeyInfoItemIdentifier(long groupId, String key); @Override boolean equals(Object object); long getGroupId(); String getKey(); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { GroupKeyInfoItemIdentifier groupKeyInfoItemIdentifier = new GroupKeyInfoItemIdentifier(12345L, "key"); Assert.assertEquals( "{className=com.liferay.info.item.GroupKeyInfoItemIdentifier, " + "_groupId=12345, _key=key}", groupKeyInfoItemIdentifier.toString()); }