@Before
	public void beforeSetSecurity() {
		final List<SimpleGrantedAuthority> authorities = new ArrayList<>();
		authorities.add(new SimpleGrantedAuthority("A"));
		UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("admin", null, authorities);
		SecurityContextImpl context = new SecurityContextImpl();
		context.setAuthentication(token);
		SecurityContextHolder.setContext(context);
	}
This class is used as base class for test case,and it will initialize the DB
related config, like datasource, and it will start a transaction for every
test function, and rollback after the execution.
ngrinder-controller/src/test/java/org/ngrinder/AbstractNGrinderTransactionalTest.java