EffectedResources { public static EffectedResources of(final Set<TreeBasedPolicyEnforcer.PointerAndPermission> grantedResources, final Set<TreeBasedPolicyEnforcer.PointerAndPermission> revokedResources) { checkNotNull(grantedResources, "Granted Resources"); checkNotNull(revokedResources, "Revoked Resources"); return new EffectedResources(grantedResources, revokedResources); } private  EffectedResources(final Set<TreeBasedPolicyEnforcer.PointerAndPermission> grantedResources,
            final Set<TreeBasedPolicyEnforcer.PointerAndPermission> revokedResources); static EffectedResources of(final Set<TreeBasedPolicyEnforcer.PointerAndPermission> grantedResources,
            final Set<TreeBasedPolicyEnforcer.PointerAndPermission> revokedResources); Set<TreeBasedPolicyEnforcer.PointerAndPermission> getGrantedResources(); Set<TreeBasedPolicyEnforcer.PointerAndPermission> getRevokedResources(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullGrantedResources() { EffectedResources.of(null, KNOWN_RESOURCES); }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullRevokedResources() { EffectedResources.of(KNOWN_RESOURCES, null); }