String themeName = "myTheme";
String layoutName = "layoutName";
String deviceName = "fakeDevice";
// use factory to create CanvasDetails object
CanvasDetails canvasDetails = ptFactory.createCanvasDetails(title,
canvasType, themeName, layoutName);
PageDetails pageDetails =
ptFactory.createPageDetails(canvasDetails, deviceName);
DefaultPageDetailsTestCase.
doComparison(pageDetails, canvasDetails, deviceName);