PixMgrController { @RequestMapping(value = "/pixQuery", method = RequestMethod.POST) public @ResponseBody PixManagerBean reqToPixQuery(@RequestParam("c32Xml") String c32xml) throws C32ParserException, Hl7v3TransformerException { String hl7v3Xml = pixManagerTransformService.getPixQueryXml(c32xml); PixManagerBean pixManagerBean = pixOperationsService.queryPerson(hl7v3Xml); return pixManagerBean; }  @RequestMapping(value = "/tansformHl7Add", method = RequestMethod.POST) @ResponseBody String transformC32ToPixAdd(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/tansformHl7Update", method = RequestMethod.POST) @ResponseBody String transformC32ToPixUpdate(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/tansformHl7Query", method = RequestMethod.POST) @ResponseBody String transformC32ToPixQuery(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixAdd", method = RequestMethod.POST) @ResponseBody String reqToPixAdd(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixQuery", method = RequestMethod.POST) @ResponseBody PixManagerBean reqToPixQuery(@RequestParam("c32Xml") String c32xml); void setPixOperationsService(PixOperationsService pixOperationsService); void setPixManagerTransformService(
			PixManagerTransformService pixManagerTransformService);  }
@Test public void testReqToPixQuery() throws C32ParserException, Hl7v3TransformerException { String c32XmlMock = "c32XmlMock"; String hl7v3XmlMock = "hl7v3XmlMock"; PixManagerBean pixManagerBeanMock = mock(PixManagerBean.class); when(pixManagerTransformServiceMock.getPixQueryXml(c32XmlMock)).thenReturn(hl7v3XmlMock); when(pixOperationsServiceMock.queryPerson(hl7v3XmlMock)).thenReturn(pixManagerBeanMock); PixManagerBean actualObj = sut.reqToPixQuery(c32XmlMock); assertEquals(pixManagerBeanMock, actualObj); }