@Override
  public UserRestResponse fetchUser(String id) {
    return usersSearchResponseGenerator.toRestUser(userService.fetchUser(id));
  }
@Test
  public void fetchUser_whenUserExists_shouldReturnUser() throws Exception {
    UserInformation user = generateUserSearchResult("user1", true, true, false, 2, 3);
    UserRestResponseForAdmins restUserForAdmins = toRestUser(user);
    when(userService.fetchUser("userLogin")).thenReturn(user);
    when(responseGenerator.toRestUser(user)).thenReturn(restUserForAdmins);
    MvcResult mvcResult = mockMvc.perform(get(USER_ENDPOINT + "/userLogin"))
      .andExpect(status().isOk())
      .andReturn();
    UserRestResponseForAdmins responseUser = gson.fromJson(mvcResult.getResponse().getContentAsString(), UserRestResponseForAdmins.class);
    assertThat(responseUser).isEqualTo(restUserForAdmins);
  }