   @Test
   public void readOneUserByNameExample() throws Exception {

      WormholeUserDetails userdetail = new WormholeUserDetails();
      String userId = UUID.randomUUID().toString();
      userdetail.setUserId(userId);
      List<String> rolenames = new ArrayList<String>();
      rolenames.add("admin");
      WormholeUser adminUser = new WormholeUser();
      adminUser.setRoleNames(rolenames);
      adminUser.setId(userId);
      userRepository.save(adminUser);
      Mockito.doReturn(userdetail).when(tokenService).getCurrentUser(any());
      WormholeUser user = createUser();
      userRepository.save(user);
      this.mockMvc.perform(get("/v1/auth/user/username/"+user.getUserName()+""))
              .andExpect(status().isOk())
              .andDo(document("AuthController-readOneUserByUserName-example", responseFields(
                    fieldWithPath("id").description("ID of User, created by flowgate"),
                    fieldWithPath("userName").description("userName.").type(JsonFieldType.STRING),
                    fieldWithPath("gender").description("gender").type(JsonFieldType.NUMBER),
                    fieldWithPath("password").description("password"),
                    fieldWithPath("mobile").description("mobile").type(JsonFieldType.STRING),
                    fieldWithPath("status").description("status").type(JsonFieldType.NUMBER),
                    fieldWithPath("createTime").description("createTime").type(Date.class),
                    fieldWithPath("emailAddress").description("emailAddress").type(JsonFieldType.STRING),
                    fieldWithPath("roleNames").description("roleNames").type(List.class),
                    fieldWithPath("userGroupIDs").description("userGroupIDs").type(List.class),
                    fieldWithPath("lastPasswordResetDate").description("lastPasswordResetDate").type(JsonFieldType.NUMBER))))
              .andReturn();
      userRepository.deleteById(userId);
      userRepository.deleteById(user.getId());
   }