### Question:
PageDatastore extends CommonDatastore<PageItem, Page> implements DatastoreHasAdd<PageItem>, DatastoreHasUpdate<PageItem>,
        DatastoreHasGet<PageItem>, DatastoreHasSearch<PageItem>, DatastoreHasDelete { @Override public PageItem get(final APIID id) { try { final Page pageItem = pageAPI.getPage(id.toLong()); return convertEngineToConsoleItem(pageItem); } catch (final Exception e) { throw new APIException(e); } } PageDatastore(final APISession engineSession, final WebBonitaConstantsUtils constantsValue,
            final PageAPI pageAPI,
            final CustomPageService customPageService,
            final CompoundPermissionsMapping compoundPermissionsMapping,
            final ResourcesPermissionsMapping resourcesPermissionsMapping,
            final BonitaHomeFolderAccessor tenantFolder); @Override PageItem add(final PageItem pageItem); @Override PageItem get(final APIID id); @Override void delete(final List<APIID> ids); @Override ItemSearchResult<PageItem> search(final int page, final int resultsByPage, final String search,
            final String orders,
            final Map<String, String> filters); @Override PageItem update(final APIID id, final Map<String, String> attributes); static final String UNMAPPED_ATTRIBUTE_ZIP_FILE; }### Answer:
@Test(expected = APIException.class) public void should_get_a_not_existing_page_rise_exception() throws Exception { deleteDir(pagesDir); when(pageAPI.getPage(1l)).thenThrow(new PageNotFoundException("newPage")); pageDatastore.get(makeAPIID(1l)); }