sessionFactory.close();
}
@Before
public void setUp() {
SessionProvider sessionProvider = new SessionProvider(sessionFactory);
session = sessionProvider.getSession();
tx = session.beginTransaction();
repository = new EntityRepositoryHibernate(sessionFactory);
AbstractEntity.setRepository(repository);
observer_1 = createMotherObserver(false);
observer_1.setSubjectKeys(Collections.singleton("BABY-SUBJECT"));