if (excluded) {
assertThat(term, is(instanceOf(NegationTerm.class)));
NegationTerm negationTerm = (NegationTerm)term;
Term negated = negationTerm.getNegatedTerm();
assertThat(negated, is(instanceOf(SimpleTerm.class)));
SimpleTerm simpleTerm = (SimpleTerm)negated;
assertThat(simpleTerm.getValue(), is(value));
assertThat(simpleTerm.isQuotingRequired(), is(quotingRequired));
} else {
assertThat(term, is(instanceOf(SimpleTerm.class)));
SimpleTerm simpleTerm = (SimpleTerm)term;
assertThat(simpleTerm.getValue(), is(value));
assertThat(simpleTerm.isQuotingRequired(), is(quotingRequired));
}
}