Slowness slowness = insert(em, session, null, null);
slowness.getReportId().setIssueId(issuezillaId);
em.merge(slowness);
BugzillaReporter reporter = BugReporterFactory.getDefaultReporter();
Issue issue = reporter.getIssue(issuezillaId);
assertNotNull(issue);
issue.setResolution("FIXED");
issue.setIssueStatus("RESOLVED");
issue.setLastResolutionChange(new Date());
assertNull(handler.getResult());
insert(em, ++session, null, null);
assertNull("todays build", handler.getResult());
insert(em, ++session, "unknown user", null);
assertNull("guest", handler.getResult());
insert(em, ++session, null, "");
assertNull("empty comment", handler.getResult());
issue.setLastResolutionChange(new Date("09/24/08"));
issue.setTargetMilestone("7.0M1");
insert(em, ++session, null, null);
assertNull("old version", handler.getResult());
issue.setTargetMilestone("6.0M9");
isReopen = true;
insert(em, ++session, null, null);
isReopen = false;
LogRecord result = handler.getResult();
assertNotNull("newer build -> reopen", result);