@Test
public void sendAdditionalNotification_testAuthHeaderFailThenRetryAndPass() throws Exception {

    int[] postNotificationResponseCode = {404, 201};
    // define mock behavior
    sendOrClearAdditionalNotification_mockBehaviorHappyCaseTemplate();
    when(httpResponseStatusLine.getStatusCode()).thenReturn(postNotificationResponseCode[0])
            .thenReturn(postNotificationResponseCode[1]);
    when(EntityUtils.toString(any())).thenReturn("[{\"message\":\"INVALID_HEADER_TYPE\",\"errorCode\":\"INVALID_AUTH_HEADER\"}]");
    // create object under test
    notifier = new GusNotifier(metricService, annotationService, auditService, config, emf, monitorService);
    // test
    boolean result = notifier.sendAdditionalNotification(context);
    assertTrue(result);
    // verify mocks
    sendOrClearAdditionalNotification_verifyGusPostMethodMockTemplate(2, 1, 1, true);
}