assertNotNull(widgetsByValues);
assertEquals(1, widgetsByValues.length);
assertEquals(allWidgets[0], widgetsByValues[0]);
// test custom widget query methods
IWidget widgetByGuid = persistenceManager.findWidgetByGuid(widgetGuid);
assertNotNull(widgetByGuid);
assertEquals(allWidgets[0], widgetByGuid);
String widgetContext = allWidgetDefaults[0].getWidgetContext();
IWidget widgetDefaultByType = persistenceManager.findWidgetDefaultByType(widgetContext);
assertNotNull(widgetDefaultByType);