@Test
public void testAlsoReplacesSeveralImagesInAMultilineString()
	throws Exception {

	Mockito.when(
		_amImageHTMLTagFactory.create(
			"<img data-fileentryid=\"1989\" src=\"adaptable\"/>",
			_fileEntry)
	).thenReturn(
		"<whatever></whatever>"
	);
	StringBundler expectedSB = new StringBundler(3);
	expectedSB.append("<div><div>");
	expectedSB.append("<whatever></whatever>");
	expectedSB.append("</div></div><br/>");
	StringBundler originalSB = new StringBundler(4);
	originalSB.append("<div><div>");
	originalSB.append("<img data-fileentryid=\"1989\" ");
	originalSB.append("src=\"adaptable\"/>");
	originalSB.append("</div></div><br/>");
	Assert.assertEquals(
		_duplicateWithNewLine(expectedSB.toString()),
		_htmlContentTransformerImpl.transform(
			_duplicateWithNewLine(originalSB.toString())));
}