@Test
void testInvalidCondition() {

    assertThatThrownBy(() -> {
        // AND (op1)
        // --term1 - datetime equals 123456789
        // --term2 - field1 between 1 and 2
        final ExpressionOperator.Builder and = new ExpressionOperator.Builder(Op.AND);
        and.addTerm(StatisticStoreDoc.FIELD_NAME_DATE_TIME, Condition.EQUALS, "123456789");
        and.addTerm("term2field", Condition.BETWEEN, "1,2");
        FilterTermsTreeBuilder.convertExpresionItemsTree(and.build(), fieldBlackList);
    }).isInstanceOf(RuntimeException.class);
}