@Test
public void VerifyValidFilterCreation() throws InvalidSyntaxException {
Object[] data = new Object[]{Constants.DEVICE_CATEGORY, "dummy"};
Filter filter = Util.createFilter("(%s=%s)", data);
Properties matching = new Properties();
matching.put(Constants.DEVICE_CATEGORY, new String[]{"dummy", "nonsense"});
Assert.assertTrue("matching filter does not match", filter.match(matching));
Properties notmatching = new Properties();
notmatching.put(Constants.DEVICE_CATEGORY, new String[]{"lummy", "nonsense"});
Assert.assertFalse("notmatching filter does match", filter.match(notmatching));
}