@Override
    public void clear() {
        throw MODIFICATION_ATTEMPT_ERROR;
    }
@Test
    void testClear() throws IOException {
        long value = valueState.value();
        assertThat(value).isEqualTo(42L);
        assertThatThrownBy(() -> valueState.clear())
                .isInstanceOf(UnsupportedOperationException.class);
    }