@Test(expected = InvalidCredentialsException.class)
public void testValidateWithCredentialsOfWrongType() throws Exception {

  setup("subject.1.name = subject");
  accessController.validate(new Credentials() {});
}