### Question:
CustomUserInfoEngineClient { public List<CustomUserInfo> listCustomInformation(long userId, int startIndex, int maxResult) { return identity.getCustomUserInfo(userId, startIndex, maxResult); } CustomUserInfoEngineClient(IdentityAPI identity); CustomUserInfoDefinition createDefinition(CustomUserInfoDefinitionCreator creator); void deleteDefinition(long id); List<CustomUserInfoDefinition> listDefinitions(int startIndex, int maxResult); long countDefinitions(); List<CustomUserInfo> listCustomInformation(long userId, int startIndex, int maxResult); SearchResult<CustomUserInfoValue> searchCustomUserInfoValues(SearchOptions options); CustomUserInfoValue setCustomUserInfoValue(long definitionId, long userId, String value);  }### Answer:
@Test public void should_list_custom_information_for_a_given_user() { given(engine.getCustomUserInfo(1L, 0, 2)).willReturn(Arrays.asList( new CustomUserInfo(1L, new EngineCustomUserInfoDefinition(1L), new CustomUserInfoValueImpl()), new CustomUserInfo(1L, new EngineCustomUserInfoDefinition(2L), new CustomUserInfoValueImpl()))); List<CustomUserInfo> information = client.listCustomInformation(1L, 0, 2); assertThat(information.get(0).getDefinition().getId()).isEqualTo(1L); assertThat(information.get(1).getDefinition().getId()).isEqualTo(2L); }