MemoryImprint memoryImprint = mock(MemoryImprint.class);
when(memoryImprint.getEvent()).thenReturn(event);
when(memoryImprint.wereAllBuildsSuccessful()).thenReturn(true);
when(memoryImprint.wereAnyBuildsFailed()).thenReturn(false);
when(memoryImprint.wereAnyBuildsUnstable()).thenReturn(false);
MemoryImprint.Entry[] entries = { Setup.createImprintEntry(project, r) };
if (failureMessage != null && !failureMessage.isEmpty()) {