@Override
    public void commit() {
        throw new UnsupportedOperationException("StateStores can't access commit.");
    }
@Test
    public void shouldThrowOnCommit() {
        assertThrows(UnsupportedOperationException.class, () -> context.commit());
    }