RoleAccess { @Override public boolean equals(Object another) { if (this != another) { if (another == null || another.getClass() != RoleAccess.class) { return false; } RoleAccess a = (RoleAccess) another; if (roles == null ? a.roles != null : !roles.equals(a.roles)) { return false; } } return true; }  RoleAccess setRoles(List<String> roles); List<String> getRoles(); @Override boolean equals(Object another); public List<String> roles; }
@Test public void TestEqualsTrue() { RoleAccess ra = new RoleAccess(); ra.equals(ra); }