Map rules = Parser.parse(text);
assertEquals(3, rules.size());
Rule rule;
rule = (Rule)((Map)rules.get(null)).get(null);
assertTrue(rule.getColor().equals(Color.decode("#000001")));
assertNull(rule.getFont());
assertNull(rule.getIconURL());
rule = (Rule)((Map)rules.get("e1")).get(null);
assertTrue(rule.getColor().equals(Color.decode("#000002")));
assertTrue(rule.getFont().isBold());
assertNull(rule.getIconURL());
rule = (Rule)((Map)rules.get("e2")).get("c1");
assertTrue(rule.getColor().equals(Color.decode("#000003")));
assertNull(rule.getFont());
assertNull(rule.getIconURL());
rule = (Rule)((Map)rules.get(null)).get("c2");
assertNull(rule.getColor());
assertNull(rule.getFont());
assertEquals("theme/icon.gif", rule.getIconURL());
}