    @Test
    public void intervalsCallUsesNoOpForDefault() {

        IntervalIterator iterator = mock(IntervalIterator.class);
        when(baseMetrics.intervalsWithDefault(eq(2000L), any(NoOpLatency.class))).thenReturn(iterator);

        IntervalIterator<PartitionedLatency<TimeoutableResult>> intervals = latencies.intervals(2000L);

        assertSame(iterator, intervals);
    }