domainObject.setName("PROJECT_NAME");
mockSessionControl.expectAndReturn(mockSession.load(Project.class, new Integer(OID)), domainObject);
HistoricalEvent event = new HistoricalEvent(0, 0, "project",
HistoricalEvent.DELETED, "PROJECT_NAME", XPlannerTestSupport.DEFAULT_PERSON_ID, new Date());
mockSession.save(event);
mockSessionControl.setMatcher(new BeanArgumentMatcher(null, new String[]{"when"}));
mockSessionControl.setReturnValue(new Integer(OID+1));
mockSession.find("", null, Hibernate.INTEGER);
mockSessionControl.setMatcher(MockControl.ALWAYS_MATCHER);
mockSessionControl.setReturnValue(Collections.EMPTY_LIST);
mockObjectRepository.delete(OID);