@Test
public void testUpdateVersionedDistribution() throws Exception {

    // Setup:
    Distribution dist = distributionFactory.createNew(DISTRIBUTION_IRI);
    dist.getModel().add(DISTRIBUTION_IRI, titleIRI, VALUE_FACTORY.createLiteral("New Title"));
    manager.updateVersionedDistribution(distributedCatalogId, VERSIONED_RECORD_IRI, VERSION_IRI, dist);
    verify(utilsService).validateVersionedDistribution(eq(distributedCatalogId), eq(VERSIONED_RECORD_IRI), eq(VERSION_IRI), eq(DISTRIBUTION_IRI), any(RepositoryConnection.class));
    verify(utilsService).updateObject(eq(dist), any(RepositoryConnection.class));
}