assertHasSimpleTerms(conjunction, "term1", "term2", "-term3");
}
@Test
public void shouldParseStringWithMultipleQuotedAndUnquotedTermsWithNegatedTerms() {
Term result = parser.parse("term1 \"term2 and 2a\" -term3 -'term 4'");
assertThat(result, is(notNullValue()));
assertThat(result, is(instanceOf(Conjunction.class)));
Conjunction conjunction = (Conjunction)result;
assertHasSimpleTerms(conjunction, "term1", "term2 and 2a", "-term3", "-term 4");
}