@Test
public void addTail() {

    final ImmutableAuthorizationContext underTest = ImmutableAuthorizationContext.of(KNOWN_TYPE, SUBJECTS_1);
    final AuthorizationContext newContext = underTest.addTail(SUBJECTS_2);
    final List<AuthorizationSubject> expectedAuthSubjects = new ArrayList<>();
    expectedAuthSubjects.addAll(SUBJECTS_1);
    expectedAuthSubjects.addAll(SUBJECTS_2);
    final AuthorizationContext expectedContext = ImmutableAuthorizationContext.of(KNOWN_TYPE, expectedAuthSubjects);
    assertThat(newContext).isEqualTo(expectedContext);
}