source: class PropertiesBasedAccessControllerTest {
  
    private PropertiesBasedAccessController accessController;
    private Path propertiesFile;
  
    @Test
    public void testResolveSubjectExistingSubjectWithAffiliation() throws Exception {
  
target:     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(id);
      assertEquals(id, subject.getId());
      assertEquals("subject", subject.getName());
      assertNotNull(subject.getOrganization());
      assertEquals(id, subject.getOrganization().getId());
      assertEquals("organization", subject.getOrganization().getName());
    }
  
  }