@Test
public void testGetGrammarTypes() throws Exception {

    final ActiveGrammarSet set = new ActiveGrammarSet(observer);
    set.add(document1);
    set.add(document2);
    final Collection<GrammarType> types = set.getGrammarTypes();
    Assert.assertEquals(1, types.size());
}