/**
* Test case for {@link QueryObjectModelFactory#fullTextSearch(String, String, StaticOperand)}
*/
public void testFullTextSearchWithBindVariableValue() throws RepositoryException {
FullTextSearch ftSearch = qf.fullTextSearch(
SELECTOR_NAME1, propertyName1,
qf.bindVariable(VARIABLE_NAME));
assertEquals("Wrong selector name", SELECTOR_NAME1, ftSearch.getSelectorName());
assertEquals("Wrong propertyName", propertyName1, ftSearch.getPropertyName());
StaticOperand op = ftSearch.getFullTextSearchExpression();
assertNotNull(op);
assertTrue("not a BindVariableValue", op instanceof BindVariableValue);
BindVariableValue value = (BindVariableValue) op;
assertEquals(VARIABLE_NAME, value.getBindVariableName());
}