@Test
public void testResolveSubjectByNameExistingSubjectWithAffiliation() throws Exception {

  String content = "" +
          "subject.1.name = subject\n" +
          "subject.1.affiliation = 1\n" +
          "organization.1.name = organization\n" +
          "";
  setup(content);
  UUID id = UUID.fromString("00000000-0000-0000-0000-000000000001");
  Subject subject = accessController.resolveSubject("subject");
  assertEquals(id, subject.getId());
  assertEquals("subject", subject.getName());
  assertNotNull(subject.getOrganization());
  assertEquals(id, subject.getOrganization().getId());
  assertEquals("organization", subject.getOrganization().getName());
}