@Test
    void testInvalidCondition() {
        assertThatThrownBy(() -> {
            // AND (op1)
            // --term1 - datetime equals 123456789
            // --term2 - field1 between 1 and 2

            final ExpressionOperator.Builder and = ExpressionOperator.builder();
            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);
    }
Should fail as a non-datetime field is using a condition other than
equals
stroom-statistics/stroom-statistics-impl-sql/src/test/java/stroom/statistics/impl/sql/search/TestFilterTermsTreeBuilder.java