### Question:
HtmlParser { public static HtmlParser instanceWithHtmlCleanupRules() { org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser parser = new org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser(); HtmlCleaner htmlCleaner = new HtmlCleaner(); htmlCleaner.configure(parser); return new HtmlParser(parser); } private  HtmlParser(AbstractSaxHtmlParser parser);  HtmlParser(); static HtmlParser instanceWithHtmlCleanupRules(); static HtmlParser instance(); void parse(InputSource input, DocumentBuilder builder); void parse(InputSource input, DocumentBuilder builder, boolean asDocument);  }### Answer:
@Test public void instanceWithHtmlCleanupRules() { HtmlParser instance = HtmlParser.instanceWithHtmlCleanupRules(); assertNotNull(instance); assertNotNull(instance.getDelegate()); assertTrue(instance.getDelegate() instanceof org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser); org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser delegate = (org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser) instance .getDelegate(); assertFalse(delegate.getProcessors().isEmpty()); }
@Test public void instanceWithHtmlCleanupRules() { HtmlParser instance = HtmlParser.instanceWithHtmlCleanupRules(); assertNotNull(instance); assertNotNull(instance.getDelegate()); assertTrue(instance.getDelegate() instanceof org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser); org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser delegate = (org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser) instance.getDelegate(); assertFalse(delegate.getProcessors().isEmpty()); }