@Test
public void testMetaHttpEquivWithLotsOfPreambleText() throws Exception {

    String path = "/test-documents/big-preamble.html";
    Metadata metadata = new Metadata();
    new HtmlParser().parse(
            HtmlParserTest.class.getResourceAsStream(path),
            new BodyContentHandler(), metadata, new ParseContext());
    assertEquals("windows-1251", metadata.get(Metadata.CONTENT_ENCODING));
}