@Test
public void testAddAll() throws Exception {

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