@Test
public void testRemovesTemporalAttributeAndSetsFinalSrc() throws Exception {

	String originalImgTag = String.format(
		"<img data-image-id=\"%s\" src=\"%s\" />", _IMAGE_FILE_ENTRY_ID,
		StringUtil.randomString());
	String expectedImgTag = String.format(
		"<img src=\"%s\" />", _FILE_ENTRY_IMAGE_URL);
	String actualTag = _htmlImageAttachmentElementReplacer.replace(
		originalImgTag, _fileEntry);
	Assert.assertEquals(expectedImgTag, actualTag);
}