widgetGuid = widget.getIdentifier();
//
// Get the widget instance created in the previous transaction via "widget GUID"
//
IWidgetInstance widgetInstance1 = persistenceManager.findWidgetInstanceByGuid(apiKey, "test", "test-shared-data-key", widgetGuid);
assertNotNull(widgetInstance1);
assertEquals(widgetInstance0, widgetInstance1);
//
// Get the widget instance created in the previous transaction via instance_idkey