@Test
public void testDistinctDesc() throws QueryStoreException {

    DistinctRequest distinctRequest = new DistinctRequest();
    distinctRequest.setTable(TestUtils.TEST_TABLE_NAME);
    ResultSort resultSort = new ResultSort();
    resultSort.setField("version");
    resultSort.setOrder(ResultSort.Order.desc);
    distinctRequest.setNesting(Arrays.asList(resultSort));
    DistinctResponse expectedResponse = new DistinctResponse();
    expectedResponse.setHeaders(Arrays.asList("version"));
    List<List<String>> listResponse = new ArrayList<List<String>>();
    listResponse.add(Arrays.asList("3"));
    listResponse.add(Arrays.asList("2"));
    listResponse.add(Arrays.asList("1"));
    expectedResponse.setResult(listResponse);
    DistinctResponse distinctResponse = DistinctResponse.class.cast(queryExecutor.execute(distinctRequest));
    assertNotNull(distinctResponse);
    assertEquals(expectedResponse, distinctResponse);
}