@Test
public void getOpenMergeRequestsTargetBranch() {

    try (RepositoryConnection conn = repo.getConnection()) {
        MergeRequestFilterParams.Builder builder = new MergeRequestFilterParams.Builder().setSortBy(VALUE_FACTORY.createIRI(_Thing.title_IRI));
        builder.setTargetBranch(TARGET_BRANCH_1_IRI);
        List<MergeRequest> result = manager.getMergeRequests(builder.build(), conn);
        assertEquals(1, result.size());
        assertEquals(request1.getResource(), result.get(0).getResource());
        verify(utilsService).getExpectedObject(eq(request1.getResource()), eq(mergeRequestFactory), any(RepositoryConnection.class));
        builder.setTargetBranch(TARGET_BRANCH_2_IRI);
        result = manager.getMergeRequests(builder.build(), conn);
        assertEquals(1, result.size());
        assertEquals(request2.getResource(), result.get(0).getResource());
        verify(utilsService).getExpectedObject(eq(request2.getResource()), eq(mergeRequestFactory), any(RepositoryConnection.class));
    }
}