@Override
    public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException {
        try {
            context.proceed();
        } catch (EofException e) {
            LOGGER.debug("Client disconnected while processing and sending response", e);
            exceptionCounter.inc();
        }
    }
@SuppressWarnings("NullAway")
    @Test
    void shouldSwallowEofException() throws IOException {
        MetricRegistry metricRegistry = new MetricRegistry();
        EofExceptionWriterInterceptor interceptor = new EofExceptionWriterInterceptor(metricRegistry);
        WriterInterceptorContext context = mock(WriterInterceptorContext.class);
        doThrow(EofException.class).when(context).proceed();
        interceptor.aroundWriteTo(context);

        verify(context, only()).proceed();

        Counter counter = metricRegistry.getCounters().get("io.dropwizard.jersey.errors.EofExceptionWriterInterceptor.eof-exceptions");
        assertThat(counter).isNotNull();
        assertThat(counter.getCount()).isEqualTo(1L);
    }