Oadr20bVENEiEventController { @RequestMapping(value = Oadr20bUrlPath.EI_EVENT_SERVICE, method = RequestMethod.POST) @ResponseBody public String request(@RequestBody String payload, Principal principal) throws Oadr20bMarshalException, Oadr20bUnmarshalException, Oadr20bDistributeEventApplicationLayerException, Oadr20bApplicationLayerException, Oadr20bXMLSignatureValidationException, Oadr20bXMLSignatureException, OadrSecurityException { return oadr20bVENEiEventService.request(principal.getName(), payload); }  @ExceptionHandler(Oadr20bDistributeEventApplicationLayerException.class) @ResponseBody String handleOadr20aDistributeEventApplicationLayerException(
			Oadr20bDistributeEventApplicationLayerException ex); @RequestMapping(value = Oadr20bUrlPath.EI_EVENT_SERVICE, method = RequestMethod.POST) @ResponseBody String request(@RequestBody String payload, Principal principal);  }
@Test public void requestTest() throws Exception { this.oadrMockMvc.perform(MockMvcRequestBuilders.get(EIEVENT_ENDPOINT).with(VTN_SECURITY_SESSION)) .andExpect(MockMvcResultMatchers.status().is(HttpStatus.METHOD_NOT_ALLOWED_405)); this.oadrMockMvc.perform(MockMvcRequestBuilders.put(EIEVENT_ENDPOINT).with(VTN_SECURITY_SESSION)) .andExpect(MockMvcResultMatchers.status().is(HttpStatus.METHOD_NOT_ALLOWED_405)); this.oadrMockMvc.perform(MockMvcRequestBuilders.delete(EIEVENT_ENDPOINT).with(VTN_SECURITY_SESSION)) .andExpect(MockMvcResultMatchers.status().is(HttpStatus.METHOD_NOT_ALLOWED_405)); String content = ""; this.oadrMockMvc .perform(MockMvcRequestBuilders.post(EIEVENT_ENDPOINT).with(VTN_SECURITY_SESSION).content(content)) .andExpect(MockMvcResultMatchers.status().is(HttpStatus.BAD_REQUEST_400)); content = "mouaiccool"; this.oadrMockMvc .perform(MockMvcRequestBuilders.post(EIEVENT_ENDPOINT).with(VTN_SECURITY_SESSION).content(content)) .andExpect(MockMvcResultMatchers.status().is(HttpStatus.NOT_ACCEPTABLE_406)); }