AclEntry implements java.io.Serializable { public String toString() { return "SERVICE NAME = " + principalName + " ATTRIBUTE NAME = " + permission; } AclEntry();  AclEntry( String principalName, String permission ); String getPrincipalName(); String getPermission(); void setPrincipalName( String principalName ); void setPermission( String permission ); boolean equals( Object o ); int hashCode(); String toString();  }
@Override @Test public void testHasValidBeanToString() { AclEntry aclEntry = new AclEntry( "admin", "publish" ); assertEquals( "SERVICE NAME = admin ATTRIBUTE NAME = publish", aclEntry.toString() ); }