private DatabaseConnectionAdapter dbConnectionAdapter;
public void setUp() throws Exception {
IUnifiedRepository repository =
new MockUnifiedRepository( new MockUnifiedRepository.SpringSecurityCurrentUserProvider() );
datasourceMgmtService = new JcrBackedDatasourceMgmtService( repository, new DatabaseDialectService() );
datasourceMgmtWebService = new DefaultDatasourceMgmtWebService( datasourceMgmtService );
dbConnectionAdapter = new DatabaseConnectionAdapter();
SecurityContextHolder.getContext()
.setAuthentication(
new UsernamePasswordAuthenticationToken( MockUnifiedRepository.root().getName(), null,