@Test
public void testMergeQueryResultsWithSameData() {

    ServiceDocumentQueryResult result1 = createServiceDocumentQueryResult(
            new int[] { 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 });
    ServiceDocumentQueryResult result2 = createServiceDocumentQueryResult(
            new int[] { 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 });
    ServiceDocumentQueryResult result3 = createServiceDocumentQueryResult(
            new int[] { 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 });
    List<ServiceDocumentQueryResult> resultsToMerge = Arrays.asList(result1, result2, result3);
    ServiceDocumentQueryResult mergeResult = new ServiceDocumentQueryResult();
    QueryTaskUtils.mergeQueryResults(resultsToMerge, true, mergeResult);
    assertTrue(verifyMergeResult(mergeResult, new int[] { 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 }));
}