@Test
@DirtiesContext // @todo need to check why this is necessary, otherwise next test fails? (GetVectorTileCommandTest)
// probably cause by directly using the command service which has an injected security context
public void createFilterTest() throws Exception {

	SearchFeatureRequest request = new SearchFeatureRequest();
	request.setLayerId(LAYER_ID);
	request.setCrs("EPSG:4326");
	SearchCriterion searchCriterion = new SearchCriterion();
	Filter filter;
	// needs to be FidFilter when equals test on id
	searchCriterion.setAttributeName(ID_ATTRIBUTE);
	searchCriterion.setOperator("=");
	searchCriterion.setValue("'1'");
	request.setCriteria(new SearchCriterion[] {searchCriterion});
	filter = searchFeatureCommand.createFilter(request, LAYER_ID);
	Assert.assertTrue(filter instanceof Id);
	// but *not* when other test
	searchCriterion.setAttributeName(ID_ATTRIBUTE);
	searchCriterion.setOperator("like");
	searchCriterion.setValue("'%a%'");
	request.setCriteria(new SearchCriterion[] {searchCriterion});
	filter = searchFeatureCommand.createFilter(request, LAYER_ID);
	Assert.assertFalse(filter instanceof Id);
}