@Test
public void sendAdditionalNotification_testPostPagerDutyNotificationResponseCode500RetryAndPass() throws Exception {

    sendOrClearAdditionalNotification_mockBehaviorTemplate();
    when(httpResponseStatusLine.getStatusCode()).thenReturn(500).thenReturn(202);
    notifier = new PagerDutyNotifier(metricService, annotationService, auditService, config, emf, monitorService);
    boolean result = notifier.sendAdditionalNotification(context);
    assertTrue(result);
    sendOrClearAdditionalNotification_verifyMocksTemplate(2, 0, 0, result);
}