@Test
public void testJsonSerializationForSimpleFieldSort() throws JSONException {

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