@Test
public void testRemoveUnversionedDistribution() throws Exception {

    // Setup:
    IRI distributionIRI = VALUE_FACTORY.createIRI(UnversionedRecord.unversionedDistribution_IRI);
    try (RepositoryConnection conn = repo.getConnection()) {
        assertTrue(conn.getStatements(UNVERSIONED_RECORD_IRI, distributionIRI, DISTRIBUTION_IRI, UNVERSIONED_RECORD_IRI).hasNext());
        manager.removeUnversionedDistribution(distributedCatalogId, UNVERSIONED_RECORD_IRI, DISTRIBUTION_IRI);
        verify(utilsService).getUnversionedDistribution(eq(distributedCatalogId), eq(UNVERSIONED_RECORD_IRI), eq(DISTRIBUTION_IRI), any(RepositoryConnection.class));
        verify(utilsService).removeObjectWithRelationship(eq(DISTRIBUTION_IRI), eq(UNVERSIONED_RECORD_IRI),
                eq(UnversionedRecord.unversionedDistribution_IRI), any(RepositoryConnection.class));
    }
}