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

        final ExpressionOperator.Builder and = ExpressionOperator.builder();
        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();

    }
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