IProperty textProperty = new DummyObjectTextProperty();
criteria.setProperty(textProperty);
assertEquals(Criteria.ERR_OPERATION_NOT_SPECIFIED, criteria.validate());
IComparisonOperation unsupportedOperation = new LongLessCO();
criteria.setComparisonOperation(unsupportedOperation);
assertEquals(Criteria.ERR_OPERATION_NOT_SUPPORTED, criteria.validate());
IComparisonOperation supportedOperation = new StringEqualsCO();
criteria.setComparisonOperation(supportedOperation);