@Test(expected = IllegalArgumentException.class)
public void createMergeRequestWithInvalidBranchTest() {

    // Setup:
    doThrow(new IllegalArgumentException()).when(utilsService).validateBranch(eq(LOCAL_CATALOG_IRI), eq(RECORD_1_IRI), eq(SOURCE_BRANCH_1_IRI), any(RepositoryConnection.class));
    MergeRequestConfig config = new MergeRequestConfig.Builder("title", RECORD_1_IRI, SOURCE_BRANCH_1_IRI, TARGET_BRANCH_1_IRI, user1, true).build();
    try (RepositoryConnection conn = repo.getConnection()) {
        manager.createMergeRequest(config, LOCAL_CATALOG_IRI, conn);
    }
}