@Test
public void getAndConsumeShouldHandleForEachRemainingThrowing() throws IOException {

  doThrow(CAUSE).when(entityIterator).forEachRemaining(any());
  doReturn(entityIterator).when(rw).get(key1, key2);
  exception.expect(IOException.class);
  exception.expectCause(is((Throwable) CAUSE));
  sut.get(List.of(key1, key2), entity -> fail());
}