/**
* Verifies the different messages if the number of items are 0, 1, and 2.
*/
@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());
}