@Test
public void testGetSubject() {

  PropertiesSubject subject = PropertiesSubject.builder()
          .setInternalID(42)
          .setName("name")
          .build();
  AccessControllerState state = AccessControllerState.builder().addSubject(subject).build();
  assertSame(subject, state.getSubject(subject.getInternalID()));
  assertSame(subject, state.getSubject(subject.getName()));
}