@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"));
observer_2 = createFatherObserver(false);
observer_2.setSubjectKeys(Collections.singleton("BABY-SUBJECT"));