@Test
public void test_deleteUser_successfully() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    UserLogin user = new UserLogin();
    user.setUsername("testuser");
    String jsonStr = "{\"username\":\"testuser\",\"password\":null}";
    Response response = getMockResponse(HttpStatus.NO_CONTENT, true, "");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("{\"messages\":[\"Username User deleted\"]}");
    when(JSONUtil.getJSON(Mockito.any(UserLogin.class))).thenReturn(jsonStr);
    when(reqProcessor.process("/auth/userpass/delete",jsonStr,token)).thenReturn(response);
    ResponseEntity<String> responseEntity = userPassService.deleteUser(token,"testuser");
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}