@Test
public void testSwaggerFilter() throws Exception, GenerateException {
ApiSource apiSource = prepare();
apiSource.setSwaggerInternalFilter(TestSwaggerSpecFilter.class.getName());
AbstractDocumentSource documentSource = new MavenDocumentSource(apiSource, new SystemStreamLog());
documentSource.loadDocuments();
OutputTemplate outputTemplate = new OutputTemplate(documentSource);
assertEquals(apiSource.getApiVersion(), outputTemplate.getApiVersion());
assertEquals(3, outputTemplate.getApiDocuments().size());
for (MustacheDocument doc : outputTemplate.getApiDocuments()) {
if (doc.getIndex() == 1) {