@Test
public void test_createUser_successfully() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    UserpassUser user = new UserpassUser("testuser", "testuser", "default");
    String jsonStr = "{  \"username\": \"testuser\",  \"password\": \"testuser\",  \"policies\": \"default\"}";
    Response response = getMockResponse(HttpStatus.NO_CONTENT, true, "");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("{\"messages\":[\"Username User created\"]}");
    when(JSONUtil.getJSON(user)).thenReturn(jsonStr);
    when(reqProcessor.process("/auth/userpass/create", jsonStr,token)).thenReturn(response);
    ResponseEntity<String> responseEntity = userPassService.createUser(token, user);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}