### Question:
APIApplicationPage extends ConsoleAPI<ApplicationPageItem> implements APIHasAdd<ApplicationPageItem>, APIHasSearch<ApplicationPageItem>, APIHasGet<ApplicationPageItem>, APIHasDelete { @Override public ApplicationPageItem add(final ApplicationPageItem item) { return factory.createApplicationPageDataStore(getEngineSession()).add(item); } APIApplicationPage(final APIApplicationDataStoreFactory factory); @Override ApplicationPageItem add(final ApplicationPageItem item); @Override String defineDefaultSearchOrder();  }### Answer:
@Test public void add_should_return_the_result_of_dataStore_add() throws Exception { final ApplicationPageItem itemToCreate = mock(ApplicationPageItem.class); final ApplicationPageItem createdItem = mock(ApplicationPageItem.class); given(applicationPageDataStore.add(itemToCreate)).willReturn(createdItem); final ApplicationPageItem retrievedItem = apiApplicationPage.add(itemToCreate); assertThat(retrievedItem).isEqualTo(createdItem); }