test_class.declarator: EIREGISTERPARTY_ENDPOINT = Oadr20bUrlPath.OADR_BASE_PATH
  			+ Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE
test_class.modifier: private static final
test_class.original_string: private static final String EIREGISTERPARTY_ENDPOINT = Oadr20bUrlPath.OADR_BASE_PATH
  			+ Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE;
test_class.type: String
test_class.var_name: EIREGISTERPARTY_ENDPOINT
test_class.declarator: VTN_SECURITY_SESSION = SecurityMockMvcRequestPostProcessors.user("vtn")
  			.roles("VTN")
test_class.modifier: public static final
test_class.original_string: public static final UserRequestPostProcessor VTN_SECURITY_SESSION = SecurityMockMvcRequestPostProcessors.user("vtn")
  			.roles("VTN");
test_class.type: UserRequestPostProcessor
test_class.var_name: VTN_SECURITY_SESSION
test_class.declarator: wac
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private WebApplicationContext wac;
test_class.type: WebApplicationContext
test_class.var_name: wac
test_class.declarator: oadrMockMvc
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private OadrMockMvc oadrMockMvc;
test_class.type: OadrMockMvc
test_class.var_name: oadrMockMvc
test_class.declarator: venConfig
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private VenConfig venConfig;
test_class.type: VenConfig
test_class.var_name: venConfig
test_class.declarator: multiVtnConfig
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private MultiVtnConfig multiVtnConfig;
test_class.type: MultiVtnConfig
test_class.var_name: multiVtnConfig
test_class.declarator: vtnHttpId
test_class.modifier: @Value("${oadr.vtn.myvtn.vtnid}")
  	private
test_class.original_string: @Value("${oadr.vtn.myvtn.vtnid}")
  	private String vtnHttpId;
test_class.type: String
test_class.var_name: vtnHttpId
test_class.file: OpenADRServerVEN20b/src/test/java/com/avob/openadr/server/oadr20b/ven/controller/Oadr20bVENEiRegisterPartyControllerTest.java
test_class.identifier: Oadr20bVENEiRegisterPartyControllerTest
test_case.body: @Test
  	public void requestTest() throws Exception {
  		// GET not allowed
  		this.oadrMockMvc.perform(MockMvcRequestBuilders.get(EIREGISTERPARTY_ENDPOINT).with(VTN_SECURITY_SESSION))
  				.andExpect(MockMvcResultMatchers.status().is(HttpStatus.METHOD_NOT_ALLOWED_405));
  
  		// PUT not allowed
  		this.oadrMockMvc.perform(MockMvcRequestBuilders.put(EIREGISTERPARTY_ENDPOINT).with(VTN_SECURITY_SESSION))
  				.andExpect(MockMvcResultMatchers.status().is(HttpStatus.METHOD_NOT_ALLOWED_405));
  
  		// DELETE not allowed
  		this.oadrMockMvc.perform(MockMvcRequestBuilders.delete(EIREGISTERPARTY_ENDPOINT).with(VTN_SECURITY_SESSION))
  				.andExpect(MockMvcResultMatchers.status().is(HttpStatus.METHOD_NOT_ALLOWED_405));
  
  		// POST without content
  		String content = "";
  		this.oadrMockMvc.perform(
  				MockMvcRequestBuilders.post(EIREGISTERPARTY_ENDPOINT).with(VTN_SECURITY_SESSION).content(content))
  				.andExpect(MockMvcResultMatchers.status().is(HttpStatus.BAD_REQUEST_400));
  
  		// POST without content
  		content = "mouaiccool";
  		this.oadrMockMvc.perform(
  				MockMvcRequestBuilders.post(EIREGISTERPARTY_ENDPOINT).with(VTN_SECURITY_SESSION).content(content))
  				.andExpect(MockMvcResultMatchers.status().is(HttpStatus.NOT_ACCEPTABLE_406));
  	}
test_case.class_method_signature: Oadr20bVENEiRegisterPartyControllerTest.requestTest()
test_case.full_signature: @Test public void requestTest()
test_case.identifier: requestTest
test_case.invocations: andExpect perform with get is status andExpect perform with put is status andExpect perform with delete is status andExpect perform content with post is status andExpect perform content with post is status
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void requestTest()
focal_class.declarator: oadr20bVENEiRegisterPartyService
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private Oadr20bVENEiRegisterPartyService oadr20bVENEiRegisterPartyService;
focal_class.type: Oadr20bVENEiRegisterPartyService
focal_class.var_name: oadr20bVENEiRegisterPartyService
focal_class.file: OpenADRServerVEN20b/src/main/java/com/avob/openadr/server/oadr20b/ven/controller/Oadr20bVENEiRegisterPartyController.java
focal_class.identifier: Oadr20bVENEiRegisterPartyController
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyController.request(@RequestBody String payload, Principal principal)
focal_class.full_signature: @RequestMapping(value = Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE, method = RequestMethod.POST) @ResponseBody public String request(@RequestBody String payload, Principal principal)
focal_class.identifier: request
focal_class.modifiers: @RequestMapping(value = Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE, method = RequestMethod.POST) @ResponseBody public
focal_class.parameters: (@RequestBody String payload, Principal principal)
focal_class.return: String
focal_class.signature: String request(@RequestBody String payload, Principal principal)
focal_method.body: @RequestMapping(value = Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE, method = RequestMethod.POST)
  	@ResponseBody
  	public String request(@RequestBody String payload, Principal principal)
  			throws Oadr20bMarshalException, Oadr20bUnmarshalException, Oadr20bApplicationLayerException,
  			Oadr20bXMLSignatureValidationException, Oadr20bXMLSignatureException, OadrSecurityException, IOException {
  
  		return oadr20bVENEiRegisterPartyService.request(principal.getName(), payload);
  	}
focal_method.class_method_signature: Oadr20bVENEiRegisterPartyController.request(@RequestBody String payload, Principal principal)
focal_method.full_signature: @RequestMapping(value = Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE, method = RequestMethod.POST) @ResponseBody public String request(@RequestBody String payload, Principal principal)
focal_method.identifier: request
focal_method.invocations: request getName
focal_method.modifiers: @RequestMapping(value = Oadr20bUrlPath.EI_REGISTER_PARTY_SERVICE, method = RequestMethod.POST) @ResponseBody public
focal_method.parameters: (@RequestBody String payload, Principal principal)
focal_method.return: String
focal_method.signature: String request(@RequestBody String payload, Principal principal)