public static TermQueryBuilder termQuery(String name, String value) {
        return new TermQueryBuilder(name, value);
    }
@Test
    public void testTermQuery() throws Exception {
        assertEquals("{\"term\":{\"k\":\"aaaa\"}}",
                toJson(QueryBuilders.termQuery("k", "aaaa")));
        assertEquals("{\"term\":{\"aaaa\":\"k\"}}",
                toJson(QueryBuilders.termQuery("aaaa", "k")));
        assertEquals("{\"term\":{\"k\":0}}",
                toJson(QueryBuilders.termQuery("k", (byte) 0)));
        assertEquals("{\"term\":{\"k\":123}}",
                toJson(QueryBuilders.termQuery("k", (long) 123)));
        assertEquals("{\"term\":{\"k\":41}}",
                toJson(QueryBuilders.termQuery("k", (short) 41)));
        assertEquals("{\"term\":{\"k\":128}}",
                toJson(QueryBuilders.termQuery("k", 128)));
        assertEquals("{\"term\":{\"k\":42.42}}",
                toJson(QueryBuilders.termQuery("k", 42.42D)));
        assertEquals("{\"term\":{\"k\":1.1}}",
                toJson(QueryBuilders.termQuery("k", 1.1F)));
        assertEquals("{\"term\":{\"k\":1}}",
                toJson(QueryBuilders.termQuery("k", new BigDecimal(1))));
        assertEquals("{\"term\":{\"k\":121}}",
                toJson(QueryBuilders.termQuery("k", new BigInteger("121"))));
        assertEquals("{\"term\":{\"k\":true}}",
                toJson(QueryBuilders.termQuery("k", new AtomicBoolean(true))));
    }