@Test
public void getMissingBranchTest() {

    // Setup:
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Branch " + RANDOM_IRI + " could not be found");
    try (RepositoryConnection conn = repo.getConnection()) {
        service.getBranch(CATALOG_IRI, VERSIONED_RDF_RECORD_MISSING_BRANCH_IRI, RANDOM_IRI, branchFactory, conn);
    }
}