GOCNotifier extends AuditNotifier { @Override protected boolean clearAdditionalNotification(NotificationContext context) { requireArgument(context != null, "Notification context cannot be null."); super.clearAdditionalNotification(context); return _sendAdditionalNotification(context, NotificationStatus.CLEARED); } @Inject  GOCNotifier(MetricService metricService, AnnotationService annotationService, AuditService auditService,
					   SystemConfiguration config, Provider<EntityManager> emf,
					   MonitorService monitorService); @Override String getName(); @Override Properties getNotifierProperties();  }
@Test public void clearAdditionalNotification_testPostGOCNotificationRespCode401RetryAndPass() throws Exception { int[] postNotificationResponseCode = {401, 201}; sendOrClearAdditionalNotification_mockBehaviorHappyCaseTemplate(); when(httpResponseStatusLine.getStatusCode()).thenReturn(postNotificationResponseCode[0]) .thenReturn(postNotificationResponseCode[1]); notifier = new GOCNotifier(metricService, annotationService, auditService, config, emf, monitorService); boolean result = notifier.clearAdditionalNotification(context); assertTrue(result); sendOrClearAdditionalNotification_verifyMocksTemplate(2, 0, 1, 1, true); }