@Test
public void testJsonSerializationForAscOrder() throws JSONException {

    String expectedJson = "{\"my_field\":{\"order\":\"asc\"}}";
    Sort s = new Sort("my_field", Sort.Sorting.ASC);
    JsonObject actualJsonObject = s.toJsonObject();
    JSONAssert.assertEquals(expectedJson, new Gson().toJson(actualJsonObject), false);
}