@Test
public void test_readUser() throws Exception {

    String responseMessage = "\"{  \\\"data\\\": { \\\"bound_cidrs\\\": [], \\\"max_ttl\\\": 0,\\\"policies\\\": [  \\\"default\\\" ], \\\"ttl\\\": 0  }}\"";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage);
    when(userpassService.readUser(eq("5PDrOhsy4ig8L3EpsJZSLAMg"),eq("user1"))).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.get("/v2/auth/userpass/users/user1")
            .header("vault-token", "5PDrOhsy4ig8L3EpsJZSLAMg")
            .header("Content-Type", "application/json;charset=UTF-8"))
            .andExpect(status().isOk())
            .andExpect(content().string(containsString(responseMessage)));
}