### Question:
QueryBuilders { static MatchesQueryBuilder matchesQuery(String name, Iterable<?> values) { return new MatchesQueryBuilder(name, values); } private  QueryBuilders();   }### Answer:
@Test void match() throws IOException { assertEquals("{\"match\":{\"foo\":[\"bar\"]}}", toJson(QueryBuilders.matchesQuery("foo", Collections.singleton("bar")))); assertEquals("{\"match\":{\"foo\":[true]}}", toJson(QueryBuilders.matchesQuery("foo", Collections.singleton(true)))); }