//
// Get the widget instance created in the previous transaction via its "service context" (category)
//
apiKeys = persistenceManager.findAll(IApiKey.class);
apiKey = apiKeys[0].getValue();
widgets = persistenceManager.findAll(IWidget.class);
widget = widgets[0];
String serviceContext = widget.getWidgetTypes().iterator().next().getWidgetContext();
IWidgetInstance widgetInstance0 = persistenceManager.findWidgetInstance(apiKey, "test", "test-shared-data-key", serviceContext);
assertNotNull(widgetInstance0);
widgetGuid = widget.getGuid();