@Test
public void getAcceptedMergeRequestsTargetCommit() {

    try (RepositoryConnection conn = repo.getConnection()) {
        MergeRequestFilterParams.Builder builder = new MergeRequestFilterParams.Builder().setSortBy(VALUE_FACTORY.createIRI(_Thing.title_IRI));
        builder.setAccepted(true).setTargetCommit(targetCommit1.getResource());
        List<MergeRequest> result = manager.getMergeRequests(builder.build(), conn);
        assertEquals(1, result.size());
        assertEquals(request4.getResource(), result.get(0).getResource());
        verify(utilsService).getExpectedObject(eq(request4.getResource()), eq(mergeRequestFactory), any(RepositoryConnection.class));
        builder.setTargetCommit(targetCommit2.getResource());
        result = manager.getMergeRequests(builder.build(), conn);
        assertEquals(1, result.size());
        assertEquals(request5.getResource(), result.get(0).getResource());
        verify(utilsService).getExpectedObject(eq(request5.getResource()), eq(mergeRequestFactory), any(RepositoryConnection.class));
    }
}