@Test
public void testCreatesAPictureTagWithSeveralMediaQueries()
	throws Exception {

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