SemanticQuery implements Iterable<SemanticQueryTerm> { public static SemanticQuery create(Collection<SemanticQueryTerm> queryTerms) { return new AutoValue_SemanticQuery(ImmutableSet.copyOf(queryTerms)); }  abstract ImmutableSet<SemanticQueryTerm> terms(); static SemanticQuery create(Collection<SemanticQueryTerm> queryTerms); static SemanticQuery create(); static SemanticQuery create(SemanticQueryTerm... queryTerms); static SemanticQuery create(String queryTermValue); Map<String, Set<String>> groupValuesByCategory(); @Override Iterator<SemanticQueryTerm> iterator(); boolean isEmpty(); boolean isNotEmpty(); int size(); String toJson(); String toUrlEncodedJson(); static SemanticQuery fromJson(String json); static SemanticQuery fromUrlEncodedJson(String json); String description();  }
@Test public void createWithASingleValue() { assertThat(SemanticQuery.create("Crocubot")) .isEqualTo(SemanticQuery.create(SemanticQueryTerm.create("Crocubot"))); }