@Test
public void testShouldPrintMessageWhenNoChanges()
throws Exception {
content.def = "another default message\n";
AbstractBuild failureBuild = createBuild(Result.FAILURE, 41, "[DEFECT-666] Changes for a failed build.");
AbstractBuild currentBuild = createBuildWithNoChanges(Result.SUCCESS, 42);
when(currentBuild.getPreviousBuild()).thenReturn(failureBuild);
when(failureBuild.getNextBuild()).thenReturn(currentBuild);
String contentStr = content.evaluate(currentBuild, listener, ChangesSinceLastSuccessfulBuildContent.MACRO_NAME);
Assert.assertEquals("Changes for Build #41\n"