### Question:
ApplicationPageDataStore extends CommonDatastore<ApplicationPageItem, ApplicationPage> implements DatastoreHasAdd<ApplicationPageItem>,
DatastoreHasGet<ApplicationPageItem>, DatastoreHasSearch<ApplicationPageItem>, DatastoreHasDelete { @Override public void delete(final List<APIID> ids) { try { for (final APIID id : ids) { applicationAPI.deleteApplicationPage(id.toLong()); } } catch (final Exception e) { throw new APIException(e); } } ApplicationPageDataStore(final APISession engineSession, final ApplicationAPI applicationAPI, final PageAPI pageAPI,
            final ApplicationPageItemConverter converter); @Override ApplicationPageItem add(final ApplicationPageItem item); @Override ApplicationPageItem get(final APIID id); @Override void delete(final List<APIID> ids); @Override ItemSearchResult<ApplicationPageItem> search(final int page, final int resultsByPage, final String search, final String orders,
            final Map<String, String> filters);  }### Answer:
@Test public void should_delete_the_good_Application_Page_on_delete() throws Exception { dataStore.delete(Arrays.<APIID> asList(APIID.makeAPIID("1"), APIID.makeAPIID("2"))); verify(applicationAPI, times(1)).deleteApplicationPage(1); verify(applicationAPI, times(1)).deleteApplicationPage(2); }
@Test(expected = APIException.class) public void should_throw_APIException_on_delete_when_engine_throws_exception() throws Exception { doThrow(new DeletionException("")).when(applicationAPI).deleteApplicationPage(1); dataStore.delete(Arrays.<APIID> asList(APIID.makeAPIID("1"))); }