@Test
public void mapApiDoc() throws Exception {
InputStream html = new ClassPathResource("/fixtures/apidocs/jdk7javaDoc.html", getClass()).getInputStream();
Document document = Jsoup.parse(html, "UTF-8", "http://example.com/docs");
SearchEntry searchEntry = apiDocumentMapper.map(document);
assertThat(searchEntry.getType(), equalTo("apiDoc"));
assertThat(searchEntry.getVersion(), equalTo("3.2.1.RELEASE"));
assertThat(searchEntry.getProjectId(), equalTo(project.getId()));
assertThat(searchEntry.getSubTitle(), equalTo("Spring Project (3.2.1.RELEASE API)"));
}