@Test
public void testEqualsSameObj() {

    ResourceAccess a = new ResourceAccess().setGranted(true);
    ResourceAccess b = new ResourceAccess().setGranted(false);
    assertEquals(a, a);
    assertNotEquals(a, b);
    b.setGranted(true);
    assertEquals(a, b);
}