// Create FetchedDatum using data
String url = "http://olddomain.com/relative-urls.html";
String location = "http://newdomain.com";
String contentType = "text/html; charset=utf-8";
HttpHeaders headers = new HttpHeaders();
headers.add(HttpHeaderNames.CONTENT_TYPE, contentType);
headers.add(HttpHeaderNames.CONTENT_LOCATION, location);
ContentBytes content = new ContentBytes(html.getBytes("utf-8"));
FetchedDatum fetchedDatum = new FetchedDatum(url, url, System.currentTimeMillis(), headers, content, contentType, 0);
// Call parser.parse
SimpleParser parser = new SimpleParser();