@Test
public void deleteAll_Valid(){
String userId = "233";
List<Widget> widgets = new ArrayList<Widget>();
Widget delete = new WidgetImpl();
WidgetRating rating = new WidgetRatingImpl();
List<WidgetRating> ratings= new ArrayList<WidgetRating>();
ratings.add(rating);
delete.setRatings(ratings);
rating.setUserId(userId);
widgets.add(delete);
expect(template.find(query(where("ratings").elemMatch(where("userId").is(userId))))).andReturn(widgets);
expect(template.save(delete)).andReturn(null);
replay(template);