@Test
void testNonEqualsConditionForDatetimeField() {

    // AND (op1)
    // --term1 - datetime between 1 and 2
    // --term2 - field1 equals 123456789
    final ExpressionOperator.Builder and = new ExpressionOperator.Builder(Op.AND);
    and.addTerm(StatisticStoreDoc.FIELD_NAME_DATE_TIME, Condition.BETWEEN, "1,2");
    and.addTerm("term2field", Condition.EQUALS, "123456789");
    final FilterTermsTree filterTermsTree = FilterTermsTreeBuilder.convertExpresionItemsTree(and.build(), fieldBlackList);
    // if we get here without an exception then it has worked as planned
    assertThat(filterTermsTree != null).isTrue();
}