public void test_optionsAndSharedStatus() throws LoginException{
options.put("authIdentity","cn=Manager,dc=my-domain,dc=com");
options.put("authzIdentity","testAuthzIdentityOption");
LdapLoginModule module = new LdapLoginModule();
Subject subject = new Subject();
module.initialize(subject, new MockCallbackHandler(), null, options);
try {
module.login();
module.commit();
assertTrue("Should get a principal from authzIdentity option",subject.getPrincipals().contains(new UserPrincipal("testAuthzIdentityOption")));
}