@Before
public void setUp() throws Exception {
graph = new InMemoryGraph();
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);