@Test
public void testUnexpected() throws IOException {

    assertThatThrownBy(() -> FileWorkspaceImpl.open(GENERIC_INDEX, FileFormat.GENERIC, FileWorkspaceImplTest::getHandlersButThrowUnexpected))
            .isInstanceOf(IOException.class)
            .hasCauseInstanceOf(RuntimeException.class);
}