@Override
  public void filter(ContainerRequestContext req)
      throws IOException {
    TrackedByGauge trackedByGauge = _resourceInfo.getResourceMethod().getAnnotation(TrackedByGauge.class);
    if (trackedByGauge != null) {
      _controllerMetrics.addValueToGlobalGauge(trackedByGauge.gauge(), 1L);
    }
  }
@Test
  public void testContainerRequestFilterIncrementsGauge()
      throws Exception {
    Method methodOne = TrackedClass.class.getDeclaredMethod("trackedMethod");
    when(_resourceInfo.getResourceMethod()).thenReturn(methodOne);
    _interceptor.filter(_containerRequestContext);
    verify(_controllerMetrics)
        .addValueToGlobalGauge(ControllerGauge.SEGMENT_DOWNLOADS_IN_PROGRESS, 1L);
  }