@Test
public void testCreatesAPictureTag() throws Exception {

	_addMediaQueries(_createMediaQuery(1989, "adaptiveURL"));
	String originalImgTag =
		"<img src=\"originalURL\" data-fileentryid=\"1234\"/>";
	StringBundler expectedSB = new StringBundler(5);
	expectedSB.append("<picture data-fileentryid=\"1234\">");
	expectedSB.append("<source media=\"(max-width:1989px)\" ");
	expectedSB.append("srcset=\"adaptiveURL\" />");
	expectedSB.append(originalImgTag);
	expectedSB.append("</picture>");
	String pictureTag = _amImageHTMLTagFactoryImpl.create(
		originalImgTag, _fileEntry);
	Assert.assertEquals(expectedSB.toString(), pictureTag);
}