public void authenticateWithExistingRole() throws ConfigurationException, SecurityServiceException
{
Builder builder = new SecurityConfig.Builder("SuccessfulLogin");
builder.runAs("adminRole");
SecurityConfig configInfo = builder.build();
Group group = new Group("Roles");
group.addMember(new Role("adminRole1"));
subject.getPrincipals().add(group);
SecurityContext context = new SecurityContext(subject, SecurityContext.getConfigurationTimeout());
service.authenticate(configInfo, context, null);