@Test
public void testFrameSrcExtraction() throws Exception {

    final String test = "<html><head><title>Title</title>" +
            "<base href=\"http://domain.com\" />" +
            "</head><frameset><frame src=\"frame.html\" /></frameset></html>";
    StringWriter sw = new StringWriter();
    new HtmlParser().parse(
            new ByteArrayInputStream(test.getBytes(UTF_8)),
            makeHtmlTransformer(sw), new Metadata(), new ParseContext());
    String result = sw.toString();
    // <frame> tag should exist, with fully resolved URL
    assertTrue(Pattern.matches("(?s).*<frame .* src=\"http://domain.com/frame.html\"/>.*$", result));
}