### Question:
ApplicationsExportServlet extends ExportByIdsServlet { @Override protected byte[] exportResources(final long[] ids, final APISession apiSession) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException, ExecutionException, ExportException { final ApplicationAPI applicationAPI = getApplicationAPI(apiSession); return applicationAPI.exportApplications(ids); }    }### Answer:
@Test public void should_call_engine_export_with_the_good_id() throws Exception { spiedApplicationsExportServlet.exportResources(new long[] { 1 }, session); verify(applicationAPI, times(1)).exportApplications(new long[] { 1 }); }