ApiRequestParams params = ApiRequestParams.builder().apiNs("Ext.ns")
.actionNs("actionns").group("doc")
.configuration(configurationService.getConfiguration()).build();
MockHttpServletRequestBuilder request = get("/api-debug-doc.js").accept(
MediaType.ALL).characterEncoding("UTF-8");
request.param("apiNs", params.getApiNs());
request.param("actionNs", params.getActionNs());
request.param("group", params.getGroup());
MvcResult result = mockMvc.perform(request).andExpect(status().isOk())
.andExpect(content().contentType("application/javascript")).andReturn();