configuration = new org.hibernate.cfg.Configuration();
configuration.configure(HIBERNATE_IN_MEM_CFG_XML);
ServiceRegistry serviceRegistryBuilder = new StandardServiceRegistryBuilder().applySettings(configuration.getProperties()).build();
sessionManager = new HibernateSessionManager(configuration.buildSessionFactory(serviceRegistryBuilder));
Map<?, ?> configMap = new HashMap<Object, Object>();
Configuration lumifyConfiguration = new HashMapConfigurationLoader(configMap).createConfiguration();
sqlUserRepository = new SqlUserRepository(lumifyConfiguration, sessionManager, authorizationRepository, userListenerUtil, graph);
sqlWorkspaceRepository = new SqlWorkspaceRepository(sqlUserRepository, sessionManager, graph);
testUser = (SqlUser) sqlUserRepository.addUser("123", "user 1", null, null, new String[0]);
}