DefaultEffectedSubjects implements EffectedSubjects { public static DefaultEffectedSubjects of(final Collection<AuthorizationSubject> granted, final Collection<AuthorizationSubject> revoked) { return new DefaultEffectedSubjects(makeUnmodifiable(checkNotNull(granted, "granted")), makeUnmodifiable(checkNotNull(revoked, "revoked"))); } private  DefaultEffectedSubjects(final Set<AuthorizationSubject> granted, final Set<AuthorizationSubject> revoked); static DefaultEffectedSubjects of(final Collection<AuthorizationSubject> granted,
            final Collection<AuthorizationSubject> revoked); @Override Set<AuthorizationSubject> getGranted(); @Override Set<AuthorizationSubject> getRevoked(); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void tryToGetInstanceWithNullGranted() { assertThatNullPointerException() .isThrownBy(() -> DefaultEffectedSubjects.of(null, Sets.newSet())) .withMessage("The granted must not be null!") .withNoCause(); }
@Test public void tryToGetInstanceWithNullRevoked() { assertThatNullPointerException() .isThrownBy(() -> DefaultEffectedSubjects.of(Sets.newSet(), null)) .withMessage("The revoked must not be null!") .withNoCause(); }