@Test public void valueCannotBeNull() { assertThatNullPointerException().isThrownBy(() -> SemanticQueryTerm.create(null, "Some category")); }
public static SemanticQueryTerm create(String value) { return create(value, ""); }
SemanticQueryTerm { public static SemanticQueryTerm create(String value) { return create(value, ""); } }
SemanticQueryTerm { public static SemanticQueryTerm create(String value) { return create(value, ""); }  }
SemanticQueryTerm { public static SemanticQueryTerm create(String value) { return create(value, ""); }  abstract String value(); abstract Optional<String> category(); static SemanticQueryTerm create(String value); static SemanticQueryTerm create(String value, String category); boolean hasValue(); String description(); static SemanticQueryTerm.GsonTypeAdapter getGsonTypeAdapter(); }
SemanticQueryTerm { public static SemanticQueryTerm create(String value) { return create(value, ""); }  abstract String value(); abstract Optional<String> category(); static SemanticQueryTerm create(String value); static SemanticQueryTerm create(String value, String category); boolean hasValue(); String description(); static SemanticQueryTerm.GsonTypeAdapter getGsonTypeAdapter();  }