@Test
public void testWhenThresholdIsDisabled() throws Exception {

  BatchingSettings settings =
      BatchingSettings.newBuilder()
          .setElementCountThreshold(null)
          .setRequestByteThreshold(null)
          .setDelayThreshold(null)
          .build();
  underTest =
      new BatcherImpl<>(
          SQUARER_BATCHING_DESC_V2, callLabeledIntSquarer, labeledIntList, settings, EXECUTOR);
  Future<Integer> result = underTest.add(2);
  assertThat(result.isDone()).isTrue();
  assertThat(result.get()).isEqualTo(4);
}