{
public void testEqualsAndHashCode()
{
AclAction aclAction = mock(AclAction.class);
String identity = "identity";
Permission allow = Permission.ALLOW;
Rule rule = new Rule(identity, aclAction, allow);
Rule equalRule = new Rule(identity, aclAction, allow);
assertTrue(rule.equals(rule));