// Create FetchedDatum using data
String url = "http://domain.com/simple-content.html";
String contentType = "text/html; charset=utf-8";
HttpHeaders headers = new HttpHeaders();
headers.add(HttpHeaderNames.CONTENT_TYPE, contentType);
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();
ParsedDatum parsedDatum = parser.parse(fetchedDatum);