@Test
public void testGetRecordWithNoCatalog() {

    // Setup:
    Record record = recordFactory.createNew(EMPTY_IRI);
    doReturn(Optional.of(record)).when(utilsService).optObject(eq(EMPTY_IRI), eq(recordFactory), any(RepositoryConnection.class));
    thrown.expect(IllegalStateException.class);
    thrown.expectMessage("Record " + EMPTY_IRI + " does not have a Catalog set");
    manager.getRecord(distributedCatalogId, EMPTY_IRI, recordFactory);
}