@Test
public void getAndConsumeShouldThrowCheckedException() throws IOException {

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