public void MigrateJustPicture_CopiesImage()
{
SetDom(@"<div class='bloom-page' data-pagelineage='5dcd48df-e9ab-4a07-afd4-6a24d0398385' id='thePage'>
<div class='marginBox'>
<div class='bloom-imageContainer bloom-leadingElement'><img data-license='cc-by-nc-sa' data-copyright='Copyright © 2012, LASI' style='width: 608px; height: 471px; margin-left: 199px; margin-top: 0px;' src='erjwx3bl.q3c.png' alt='This picture, erjwx3bl.q3c.png, is missing or was loading too slowly.' height='471' width='608'></img></div>
</div>
</div>
");
var book = CreateBook();
var dom = book.RawDom;
var page = (XmlElement)dom.SafeSelectNodes("//div[@id='thePage']")[0];
book.BringPageUpToDate(page);
var newPage = (XmlElement)dom.SafeSelectNodes("//div[@id='thePage']")[0];
CheckPageIsCustomizable(newPage);
CheckPageLineage(page, newPage, "5dcd48df-e9ab-4a07-afd4-6a24d0398385", "adcd48df-e9ab-4a07-afd4-6a24d0398385");
AssertThatXmlIn.Dom(dom).HasSpecifiedNumberOfMatchesForXpath("//img[@data-license='cc-by-nc-sa' and @data-copyright='Copyright © 2012, LASI' and @src='erjwx3bl.q3c.png']", 1);
AssertThatXmlIn.Dom(dom).HasSpecifiedNumberOfMatchesForXpath("//img", 1);
}