* than this value
* @return the {@link HealthReportBuilder} under test
*/
private AbstractHealthDescriptor createHealthBuilder(final boolean isThresholdEnabled, final int threshold,
final boolean isHealthEnabled, final int healthy, final int unHealthy) {
AbstractHealthDescriptor healthDescriptor = mock(AbstractHealthDescriptor.class);
when(healthDescriptor.isThresholdEnabled()).thenReturn(isThresholdEnabled);
when(healthDescriptor.getLowerBoundOfThresholds()).thenReturn(threshold);
when(healthDescriptor.isHealthyReportEnabled()).thenReturn(isHealthEnabled);
when(healthDescriptor.getHealthyAnnotations()).thenReturn(healthy);
when(healthDescriptor.getUnHealthyAnnotations()).thenReturn(unHealthy);
return healthDescriptor;
}