@Test
public void testGetGrammars() throws Exception {

    final ActiveGrammarSet set = new ActiveGrammarSet(observer);
    set.add(document1);
    set.add(document2);
    final Collection<GrammarDocument> docs = set.getGrammars();
    Assert.assertEquals(2, docs.size());
}