HealthReport healthMock = mock(HealthReport.class);
when(healthMock.getDescription()).thenReturn("Fine");
when(healthMock.getScore()).thenReturn(100);
AbstractMavenProject job = mock(AbstractMavenProject.class);
ItemGroup parent = mock(ItemGroup.class);
when(parent.getFullDisplayName()).thenReturn("");
when(job.getParent()).thenReturn(parent);
when(job.getFullDisplayName()).thenReturn("fsProject");
when(job.getLastBuild()).thenReturn(build);
when(job.getBuildHealth()).thenReturn(healthMock);
HealthCommand cmd = new HealthCommand();
String reply = cmd.getMessageForJob(job).toString();
assertFalse(reply.contains(AbstractMultipleJobCommand.UNKNOWN_JOB_STR));