public void testIncompleteHtmlParsing() throws DiscoveryException
{
// stop reading from the received HTML body shortly after the Yadis tag
HttpFetcher cache = new HttpCache();
HttpRequestOptions requestOptions = cache.getRequestOptions();
requestOptions.setMaxBodySize(350);
cache.setDefaultRequestOptions(requestOptions);
YadisResolver resolver = new YadisResolver(cache);
YadisResult result = resolver.discover("http://localhost:" + _servletPort + "/?html=simplehtml",
10, Collections.singleton("http://example.com/"));