@Test
public void testSrcAbsoluteURLRewriting() throws Exception {

	String template = "<img src=\"/resource\">";
	MailTemplate mailTemplate = new DefaultMailTemplate(template, false);
	String result = mailTemplate.renderAsString(
		Locale.ENGLISH, _mailTemplateContext);
	Assert.assertEquals(
		"<img src=\"http://liferay.com/resource\">", result);
}