### Question:
APICustomUserInfoDefinition extends ConsoleAPI<CustomUserInfoDefinitionItem> implements
        APIHasAdd<CustomUserInfoDefinitionItem>,
        APIHasSearch<CustomUserInfoDefinitionItem>,
        APIHasDelete { public void delete(final List<APIID> ids) { for (APIID id : ids) { engineClientCreator.create(getEngineSession()).deleteDefinition(id.toLong()); } } APICustomUserInfoDefinition(CustomUserInfoEngineClientCreator engineClientCreator); CustomUserInfoDefinitionItem add(CustomUserInfoDefinitionItem definition); void delete(final List<APIID> ids); ItemSearchResult<CustomUserInfoDefinitionItem> search(
            final int page,
            final int resultsByPage,
            final String search,
            final String orders,
            final Map<String, String> filters); String defineDefaultSearchOrder(); static final String FIX_ORDER; }### Answer:
@Test public void delete_should_delete_all_items_with_id_passed_through() throws Exception { ArgumentCaptor<Long> argument = ArgumentCaptor.forClass(Long.class); api.delete(Arrays.asList( APIID.makeAPIID(1L), APIID.makeAPIID(2L))); verify(engine, times(2)).deleteDefinition(argument.capture()); assertThat(argument.getAllValues()).containsOnly(1L, 2L); }