### Question:
PageDatastore extends CommonDatastore<PageItem, Page> implements DatastoreHasAdd<PageItem>, DatastoreHasUpdate<PageItem>,
        DatastoreHasGet<PageItem>, DatastoreHasSearch<PageItem>, DatastoreHasDelete { @Override protected PageItem convertEngineToConsoleItem(final Page item) { if (item != null) { return new PageItemConverter().convert(item); } return null; } 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 public void should_ConvertEngineToConsoleItem_returns_null_if_item_is_null() { assertThat(pageDatastore.convertEngineToConsoleItem(null)).isNull(); }
@Test public void should_ConvertEngineToConsoleItem_return_null_when_null_page_is_given() { final Page nullPage = null; final PageItem testPageItem = pageDatastore.convertEngineToConsoleItem(nullPage); assertThat(testPageItem).isNull(); }
@Test public void should_ConvertEngineToConsoleItem_return_a_page_item_when_page_is_given() { final PageItem testPageItem = pageDatastore.convertEngineToConsoleItem(mockedPage); assertThat(testPageItem).isNotNull(); }