@Test
public void readActiveStatesShouldPropagateIOException() throws Exception {

  var cause = new IOException("foobar");
  doThrow(cause).when(datastore).query(any());
  var exception = assertThrows(IOException.class, () -> storage.readActiveStates());
  assertThat(exception, is(cause));
}