void recordRecordsFetched(int records) {
        recordsFetched.record(records);
    }
@Test
    public void testRecordsFetched() {
        shareFetchMetricsManager.recordRecordsFetched(7);
        time.sleep(metrics.config().timeWindowMs() + 1);
        shareFetchMetricsManager.recordRecordsFetched(9);

        assertEquals(9, (double) getMetric(shareFetchMetricsRegistry.recordsPerRequestMax).metricValue());
        assertEquals(8, (double) getMetric(shareFetchMetricsRegistry.recordsPerRequestAvg).metricValue(), EPSILON);
    }