### Question:
ResourceAccess { public boolean getGranted() { return granted; }  ResourceAccess setGranted(boolean granted); boolean getGranted(); @Override boolean equals(Object another); public boolean granted; }### Answer:
@Test public void testGetGranted() { ResourceAccess a = new ResourceAccess(); a.setGranted(true); assertTrue(a.getGranted()); }