@Test
public void nonExistingAttributeFilter() throws Exception {

	Filter filter = filterService.createCompareFilter("noSuchAttr", "=", "blabla");
	try {
		layer.getElements(filter, 0, 0);
		Assert.fail("Expected filter evaluation exception for non-exisitng attribute");
	} catch (LayerException e) {
		Assert.assertEquals(ExceptionCode.FILTER_EVALUATION_PROBLEM, e.getExceptionCode());
	}
}