### Question:
FindBugsHealthDescriptor extends AbstractHealthDescriptor { @Override protected Localizable createDescription(final AnnotationProvider result) { if (result.getNumberOfAnnotations() == 0) { return Messages._FindBugs_ResultAction_HealthReportNoItem(); } else if (result.getNumberOfAnnotations() == 1) { return Messages._FindBugs_ResultAction_HealthReportSingleItem(); } else { return Messages._FindBugs_ResultAction_HealthReportMultipleItem(result.getNumberOfAnnotations()); } } FindBugsHealthDescriptor(final HealthDescriptor healthDescriptor);   }### Answer:
@Test public void verifyNumberOfItems() { AnnotationProvider provider = mock(AnnotationProvider.class); FindBugsHealthDescriptor healthDescriptor = new FindBugsHealthDescriptor(NullHealthDescriptor.NULL_HEALTH_DESCRIPTOR); Localizable description = healthDescriptor.createDescription(provider); assertEquals(WRONG_DESCRIPTION, Messages.FindBugs_ResultAction_HealthReportNoItem(), description.toString()); when(provider.getNumberOfAnnotations()).thenReturn(1); description = healthDescriptor.createDescription(provider); assertEquals(WRONG_DESCRIPTION, Messages.FindBugs_ResultAction_HealthReportSingleItem(), description.toString()); when(provider.getNumberOfAnnotations()).thenReturn(2); description = healthDescriptor.createDescription(provider); assertEquals(WRONG_DESCRIPTION, Messages.FindBugs_ResultAction_HealthReportMultipleItem(2), description.toString()); }