@Test
public void testProcessSimplePortletFileEntryURL() throws Exception {

	DocumentHTMLProcessor documentHTMLProcessor =
		new DocumentHTMLProcessor();
	String originalHTML = StringBundler.concat(
		"<html><head><title>test-title</title></head><body><img src=\"",
		"/documents/portlet_file_entry/10766/test-title/f17b2a6b-ae6e-61cf",
		"\"/></body></html>");
	InputStream originalInputStream = new ByteArrayInputStream(
		originalHTML.getBytes());
	InputStream processedInputStream = documentHTMLProcessor.process(
		originalInputStream);
	String processedHTML = IOUtils.toString(processedInputStream, "UTF-8");
	String expectedHTML = StringBundler.concat(
		"<html><head><title>test-title</title></head><body><img src=\"",
		"/documents/portlet_file_entry/10766/test-title/f17b2a6b-ae6e-61cf",
		"?auth_token=authtoken\"/></body></html>");
	Assert.assertEquals(expectedHTML, processedHTML);
}