EhrNumOneController { @RequestMapping(method = RequestMethod.GET) public @ResponseBody EhrNumOneDto get() { EhrNumOneDto dto = new EhrNumOneDto(); return dto; }  @RequestMapping(method = RequestMethod.GET) @ResponseBody EhrNumOneDto get(); @RequestMapping(value = "/c32/{patientId}", method = RequestMethod.GET) @ResponseBody String getC32(@PathVariable("patientId") String patientId); @RequestMapping(value = "/parseC32", method = RequestMethod.POST) @ResponseBody GreenCCD parseC32(@RequestParam("c32Xml") String c32xml); void setC32Getter(C32Getter c32Getter); void setC32Parser(C32Parser c32Parser);  }
@Test public void testGet() { String c32XmlMock = "c32XmlMock"; String patientIdMock = "patientIdMock"; when(c32GetterMock.getC32(patientIdMock)).thenReturn(c32XmlMock); String actualRet = sut.getC32(patientIdMock); assertEquals(c32XmlMock, actualRet); }