// test generic findByValues methods
Map<String,Object> values = new HashMap<String,Object>();
values.put("height", allWidgets[0].getHeight());
values.put("width", allWidgets[0].getWidth());
values.put("widgetAuthor", allWidgets[0].getWidgetAuthor());
IWidget [] widgetsByValues = persistenceManager.findByValues(IWidget.class, values);
assertNotNull(widgetsByValues);
assertEquals(1, widgetsByValues.length);
assertEquals(allWidgets[0], widgetsByValues[0]);
// test custom widget query methods