@Test
public void testWhenDelayThresholdExceeds() throws Exception {

  BatchingSettings settings =
      batchingSettings.toBuilder().setDelayThreshold(Duration.ofMillis(100)).build();
  underTest =
      new BatcherImpl<>(
          SQUARER_BATCHING_DESC_V2, callLabeledIntSquarer, labeledIntList, settings, EXECUTOR);
  Future<Integer> result = underTest.add(6);
  assertThat(result.isDone()).isFalse();
  assertThat(result.get()).isEqualTo(36);
}