@Test
public void testUpdateVersion() throws Exception {

    // Setup:
    Version version = versionFactory.createNew(VERSION_IRI);
    version.getModel().add(VERSION_IRI, titleIRI, VALUE_FACTORY.createLiteral("New Title"));
    manager.updateVersion(distributedCatalogId, VERSIONED_RECORD_IRI, version);
    verify(utilsService).validateVersion(eq(distributedCatalogId), eq(VERSIONED_RECORD_IRI), eq(VERSION_IRI), any(RepositoryConnection.class));
    verify(utilsService).updateObject(eq(version), any(RepositoryConnection.class));
}