final Subject subject = new Subject();
final Map<String, Object> options = getAllOptions();
options.put(CertificateLoginModule.ROLE_PROPERTIES, "roles.properties");
// simulates the authenticated principal
final Principal principal = new User("Daniel Bevenius");
subject.getPrincipals().add(principal);
// call add roles
module.addRoles(subject, principal, null, options);