@Test
public void testWildcardFieldQuery() throws Exception {

	SearchContext searchContext = getSearchContext();
	searchContext.setKeywords("+title:test*.jpg +userName:bar*");
	String cmisQuery = buildQuery(searchContext);
	assertQueryEquals(
		"(cmis:name LIKE 'test%.jpg' AND cmis:createdBy LIKE 'bar%')",
		cmisQuery);
}