@Test
public void testBooleanQuery() throws Exception {

	SearchContext searchContext = getSearchContext();
	searchContext.setKeywords("+test* -test.doc");
	String cmisQuery = buildQuery(searchContext);
	assertQueryEquals(
		"((cmis:name LIKE 'test%' AND NOT(cmis:name = 'test.doc')) OR " +
			"(cmis:createdBy LIKE 'test%' AND NOT(cmis:createdBy = " +
				"'test.doc')))",
		cmisQuery);
}