public static RangeQueryBuilder rangeQuery(String name) {
        return new RangeQueryBuilder(name);
    }
@Test
    public void testRangeQuery() throws Exception {
        assertEquals("{\"range\":{\"k\":{\"lt\":123}}}",
                toJson(QueryBuilders.rangeQuery("k").lt(123)));
        assertEquals("{\"range\":{\"k\":{\"gt\":123}}}",
                toJson(QueryBuilders.rangeQuery("k").gt(123)));
        assertEquals("{\"range\":{\"k\":{\"gte\":12345678}}}",
                toJson(QueryBuilders.rangeQuery("k").gte(12345678)));
        assertEquals("{\"range\":{\"k\":{\"lte\":12345678}}}",
                toJson(QueryBuilders.rangeQuery("k").lte(12345678)));
        assertEquals("{\"range\":{\"k\":{\"gt\":123,\"lt\":345}}}",
                toJson(QueryBuilders.rangeQuery("k").gt(123).lt(345)));
        assertEquals("{\"range\":{\"k\":{\"gt\":-456.6,\"lt\":12.3}}}",
                toJson(QueryBuilders.rangeQuery("k").lt(12.3f).gt(-456.6f)));
        assertEquals("{\"range\":{\"k\":{\"gt\":6789.33,\"lte\":9999.99}}}",
                toJson(QueryBuilders.rangeQuery("k").gt(6789.33f).lte(9999.99f)));
        assertEquals("{\"range\":{\"k\":{\"gte\":1,\"lte\":\"zzz\"}}}",
                toJson(QueryBuilders.rangeQuery("k").gte(1).lte("zzz")));
        assertEquals("{\"range\":{\"k\":{\"gte\":\"zzz\"}}}",
                toJson(QueryBuilders.rangeQuery("k").gte("zzz")));
        assertEquals("{\"range\":{\"k\":{\"gt\":\"aaa\",\"lt\":\"zzz\"}}}",
                toJson(QueryBuilders.rangeQuery("k").gt("aaa").lt("zzz")));
    }