PagerDutyNotifier extends AuditNotifier { @Override protected boolean clearAdditionalNotification(NotificationContext context) { requireArgument(context != null, "Notification context cannot be null."); super.clearAdditionalNotification(context); return sendPagerDutyNotification(context, NotificationStatus.CLEARED); } @Inject  PagerDutyNotifier(MetricService metricService, AnnotationService annotationService, AuditService auditService, SystemConfiguration config, Provider<EntityManager> emf,
                             MonitorService monitorService); protected  PagerDutyNotifier(MetricService metricService, AnnotationService annotationService, AuditService auditService,
                                SystemConfiguration config, Provider<EntityManager> emf,
                                MonitorService monitorService, String endpoint, String token, long httpResponseCode429RetryDelayTime); @Override String getName(); @Override Properties getNotifierProperties(); static final ThreadLocal<DateFormat> DATE_FORMAT; }
@Test public void clearAdditionalNotification_testPostPagerDutyNotificationResponseCode202() throws Exception { sendOrClearAdditionalNotification_mockBehaviorTemplate(); when(httpResponseStatusLine.getStatusCode()).thenReturn(202); notifier = new PagerDutyNotifier(metricService, annotationService, auditService, config, emf, monitorService); boolean result = notifier.clearAdditionalNotification(context); assertTrue(result); sendOrClearAdditionalNotification_verifyMocksTemplate(1, 0, 0, result); }