RuleEngine { public int getMemoryLength() { return this.memory.size(); }  void add(Rule rule); void addRules(List<Rule> rules); void clear(); int getMemoryLength(); synchronized Rule getTopMatch(Item item); boolean matchRule(Rule rule, Item item);  }
@Test public void emptyAtInit(){ Assert.assertEquals(0,re.getMemoryLength()); }