@Test
public void testParseFilter()
{

  Map<String,String> attrs = ManifestHeaderProcessor.parseFilter("(package=com.ibm.test)");
  assertEquals("com.ibm.test", attrs.get("package"));
  attrs = ManifestHeaderProcessor.parseFilter("(&(package=com.ibm.test)(attr=value))");
  assertEquals("com.ibm.test", attrs.get("package"));
  assertEquals("value", attrs.get("attr"));
  assertEquals(2, attrs.size());
  attrs = ManifestHeaderProcessor.parseFilter("(&(version>=1.0.0))");
  assertEquals("1.0.0", attrs.get("version"));
  attrs = ManifestHeaderProcessor.parseFilter("(&(version>=1.0.0)(version<=2.0.0))");
  assertEquals("[1.0.0,2.0.0]", attrs.get("version"));
  attrs = ManifestHeaderProcessor.parseFilter("(&(version>=1.0.0)(version<=2.0.0)(!(version=1.0.0)))");
  assertEquals("(1.0.0,2.0.0]", attrs.get("version"));
  attrs = ManifestHeaderProcessor.parseFilter("(&(!(version=2.0.0))(!(version=1.0.0))(version>=1.0.0)(version<=2.0.0))");
  assertEquals("(1.0.0,2.0.0)", attrs.get("version"));
}