if (!r1.getRoleValue().equals(r2.getRoleValue())) throw new RuntimeException();
}
public void compareRoleInfo(Object o1, Object o2)
{
RoleInfo r1 = (RoleInfo)o1;
RoleInfo r2 = (RoleInfo)o2;
if (!r1.getDescription().equals(r2.getDescription())) throw new RuntimeException();
if (r1.getMaxDegree() != r2.getMaxDegree()) throw new RuntimeException();
if (r1.getMinDegree() != r2.getMinDegree()) throw new RuntimeException();
if (!r1.getName().equals(r2.getName())) throw new RuntimeException();
if (!r1.getRefMBeanClassName().equals(r2.getRefMBeanClassName())) throw new RuntimeException();
if (!r1.isReadable() || !r2.isReadable()) throw new RuntimeException();
if (!r1.isWritable() || !r2.isWritable()) throw new RuntimeException();
}