@Test
public void testGetCurrentUserID() throws Exception {

  UUID currentUserID = UUID.fromString("00000000-0000-0000-0000-000000000001");
  when(accessController.validate(credentials)).thenReturn(sessionDescriptor);
  when(identityResolver.resolveSubjectUUID(sessionDescriptor)).thenReturn(currentUserID);
  assertEquals(currentUserID, context.getCurrentUserID());
}