@Test
public void testValidateWithValidCredentials() throws Exception {

  setup("subject.1.name = subject");
  SessionDescriptor descriptor = accessController.validate(createCredentials(1));
  assertTrue(descriptor instanceof SubjectDescriptor);
  assertEquals(1, ((SubjectDescriptor) descriptor).getIdentifier().getInternalID());
}