@Test
public void should_WritesORDERClauseIntoQueryStatement() throws Exception {

    IObject criteriaMessage = new DSObject("{ \"sort\": [ { \"testField\": \"desc\" }, { \"anotherTestField\": \"asc\" } ] }");
    List<IObject> sortMessage = (List<IObject>) criteriaMessage.getValue(new FieldName("sort"));
    orderWriter.write(query, sortMessage);
    assertEquals("ORDER BY(document#>'{testField}')DESC,(document#>'{anotherTestField}')ASC", body.toString());
    verify(query, times(0)).pushParameterSetter(any());
}