public boolean isModified(final ExecutionVertexVersion executionVertexVersion) {
        final Long currentVersion =
                getCurrentVersion(executionVertexVersion.getExecutionVertexId());
        return currentVersion != executionVertexVersion.getVersion();
    }
@Test
    void throwsExceptionIfVertexWasNeverModified() {
        assertThatThrownBy(
                        () ->
                                executionVertexVersioner.isModified(
                                        new ExecutionVertexVersion(TEST_EXECUTION_VERTEX_ID1, 0)))
                .withFailMessage("Expected exception not thrown")
                .isInstanceOf(IllegalStateException.class)
                .hasMessageContaining(
                        "Execution vertex "
                                + TEST_EXECUTION_VERTEX_ID1
                                + " does not have a recorded version");
    }