private final ParserFactory parserSetup() {
final ParserFactory parserFactory = new ParserFactory();
final HashMap<String, Object> parserFactoryMap = new HashMap<String, Object>();
htmlParser = Mockito.mock(HtmlParser.class, new ReturnsMocks());
parserFactoryMap.put("text/html", htmlParser);
parserFactory.setMap(parserFactoryMap);
return parserFactory;
}