private static Metadata GetMetadata(string dataDivContent)
{
var dom = MakeDom(dataDivContent);
//normally, the branding is just a name, which we look up in the official branding folder
//but in order to allow unit tests to test particular contents of it, we also allow
//it to be a path to a constructed branding folder.
//These unit tests can then write to a temp file and point to that.
return BookCopyrightAndLicense.GetMetadata(dom, _brandingFolder.Path);
}