### Question:
CustomUserInfoEngineClient { public long countDefinitions() { return identity.getNumberOfCustomInfoDefinitions(); } 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_count_definitions() throws Exception { given(engine.getNumberOfCustomInfoDefinitions()).willReturn(5L); assertThat(client.countDefinitions()).isEqualTo(5); }