@SuppressWarnings({"ObjectEqualsNull"})

@Test
public void testEquals() {
    ACE ace2 = new ACE("bogdan", "write", false);
    ACE ace3 = new ACE("raoul", "write", false);
    ACE ace4 = new ACE("bogdan", "read", false);
    ACE ace5 = new ACE("bogdan", "write", true);
    assertEquals(ace, ace);
    assertEquals(ace, ace2);
    assertEquals(ace2, ace);
    assertFalse(ace.equals(null));
    assertFalse(ace.equals(ace3));
    assertFalse(ace.equals(ace4));
    assertFalse(ace.equals(ace5));
    assertEquals(ace.hashCode(), ace2.hashCode());
}