@Override
protected void setUp() throws Exception {
DeleteDbFiles.execute("target", "geoserver", true);
super.setUp();
GeoServerFacade dao = geoServer.getFacade();
for (ServiceInfo s : dao.getServices()) { dao.remove(s); }
GeoServerInfo global = dao.getGlobal();
if (global != null) {
//global.setAdminPassword(null);
//dao.save(global);
dao.setGlobal(null);
}
sessionFactory = (SessionFactory) ctx.getBean("hibSessionFactory");
HibUtil.setUpSession(sessionFactory);
}