@Test
public void testNoResult() {

  try {
    BatchedFuture<Integer> batchedFuture = BatchedFuture.<Integer>create();
    BatchedRequestIssuer<Integer> issuer = new BatchedRequestIssuer<>(batchedFuture, 2);
    issuer.sendResult();
    Assert.fail("BatchedFuture should have thrown an exception");
  } catch (IllegalStateException expected) {
    Truth.assertThat(expected)
        .hasMessageThat()
        .contains("Neither response nor exception were set in BatchedRequestIssuer");
  }
}