@Test
@SuppressWarnings("null")
public void testStoreItem() throws IOException {

    Path copyOfGeneric = newGenericSample();
    try (FileWorkspace ws = openGenericUsingServiceLoader(copyOfGeneric)) {
        assertThatThrownBy(() -> ws.store(GENERIC_SA_MULTI, "hello"))
                .isInstanceOf(IOException.class)
                .hasCauseInstanceOf(ClassCastException.class);
        assertThatThrownBy(() -> ws.store(null, "hello")).isInstanceOf(NullPointerException.class);
        assertThatThrownBy(() -> ws.store(GENERIC_SA_MULTI, null)).isInstanceOf(NullPointerException.class);
    }
}