SetupDataBaseService { public boolean isDalInitialized() { if (!initialized) { synchronized (LOCK) { try { initialized = resourceExists(DATASOURCE_XML); } catch (Exception e) { e.printStackTrace(); } } } return initialized; }  ServiceResult connectionTest(ConnectionRequest connectionRequest); boolean tableConsistent(String catalog); boolean setupAdmin(DasGroup dasGroup, LoginUser user); boolean isDalInitialized(); static final Object LOCK; final static String DATASOURCE_MYSQL_DRIVER; final static String jdbcUrlTemplate; }
@Test public void isDalInitializedTest() { Assert.assertTrue(setupDataBaseService.isDalInitialized()); }