@Test( expected = javax.jcr.LoginException.class )
public void shouldNotAllowLoginIfCredentialsReturnNullAccessControlContext() throws Exception {
String repoName = REPO_NAME;
String jaasPolicyName = "modeshape-jcr";
String[] anonRoleNames = {};
Document config = createRepositoryConfiguration(repoName, jaasPolicyName, anonRoleNames);
startRepositoryWith(config, repoName);
repository.login(new Credentials() {
private static final long serialVersionUID = 1L;