@Test
public void testGetSubjectIdentitiesOmitsOtherSubjects() throws Exception {

  String content = "" +
          "subject.1.name = subject1\n" +
          "subject.2.name = subject2\n" +
          "subject.3.name = subject3\n" +
          "subject.3.type = group\n" +
          "subject.3.members = 1,2\n" +
          "subject.4.name = subject4\n" +
          "subject.4.type = group\n" +
          "subject.4.members = 2" +
          "";
  setup(content);
  Set<SubjectIdentity> subjects = accessController.getSubjectIdentities(createCredentials(1));
  assertEquals(2, subjects.size());
  assertSubjectID(subjects, 1); // subject
  assertSubjectID(subjects, 3); // parent
}