@Action(name = "purge", resourceLevel = ResourceLevel.COLLECTION)
  public int purge()
  {
    final int numPurged = _db.getData().size();
    _db.getData().clear();

    AlbumEntryResource.purge(_entryDb, null, null);
    return numPurged;
  }
@Test
  public void testResourcePurge()
  {
    // photo database is initialized to have 1 photo
    // at any time of the test, that initial photo should present for purge
    Assert.assertTrue(_res.purge() > 0);
  }