@Test
public void testDeleteResources() throws Exception {

  IvoryService service = createMock(IvoryService.class);
  List<String> feedNames = new LinkedList<String>();
  feedNames.add("Feed1");
  Map<String,String> props = new HashMap<String, String>();
  Feed feed1 = new Feed("Feed1", "d", "s", "sch", "source", "st", "end", "l", "a", "target", "st", "end", "l", "a", props);
  // set expectations
  expect(service.getFeedNames()).andReturn(feedNames);
  expect(service.getFeed("Feed1")).andReturn(feed1);
  service.deleteFeed("Feed1");
  // replay
  replay(service);
  FeedResourceProvider provider = new FeedResourceProvider(service,
      PropertyHelper.getPropertyIds(Resource.Type.DRFeed),
      PropertyHelper.getKeyPropertyIds(Resource.Type.DRFeed));
  Predicate predicate = new PredicateBuilder().property(FeedResourceProvider.FEED_NAME_PROPERTY_ID).equals("Feed1").toPredicate();
  provider.deleteResources(new RequestImpl(null, null, null, null), predicate);
  // verify
  verify(service);
}