@Test
public void testFailure() throws Exception {
FreeStyleBuild build = mock(FreeStyleBuild.class);
when(build.getUrl()).thenReturn("job/foo/32/");
HealthReport healthMock = mock(HealthReport.class);
when(healthMock.getDescription()).thenReturn("Cloudy");
when(healthMock.getScore()).thenReturn(0);
AbstractMavenProject job = mock(AbstractMavenProject.class);
ItemGroup parent = mock(ItemGroup.class);
when(parent.getFullDisplayName()).thenReturn("");
when(job.getParent()).thenReturn(parent);