this.applicationContext.register(SecurityConfiguration.class);
this.applicationContext.refresh();
UserDetailsService userDetailsService = this.applicationContext.getBean(UserDetailsService.class);
Assert.assertNotNull("the userDetailsService should not be null", userDetailsService);
assertEquals("there should only be 1 authority", userDetailsService.loadUserByUsername("jlong").getAuthorities().size(), 1);
assertEquals("there should be 2 authorities", userDetailsService.loadUserByUsername("jbarrez").getAuthorities().size(), 2);
}
@Configuration
@Import({DataSourceAutoConfiguration.class, DataSourceProcessEngineAutoConfiguration.DataSourceConfiguration.class,
org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration.class,