RaxaPatientAccessController extends BaseRestController { @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Relationship for the uuid path") @ResponseBody() public String getRelationshipByUuid(@PathVariable("uuid") String uuid, HttpServletRequest request) throws ResponseException { initRelationshipController(); Relationship relationship = service.getRelationshipByUuid(uuid); return gson.toJson(getRelationshipAsSimpleObject(relationship)); }  void initRelationshipController(); @RequestMapping(method = RequestMethod.POST) @WSDoc("Save New Relationship") @ResponseBody Object createNewRelationship(@RequestBody SimpleObject post, HttpServletRequest request,
	        HttpServletResponse response); @RequestMapping(method = RequestMethod.GET, params = "fromPerson") @WSDoc("Gets Full representation of Relationships for the given parameters") @ResponseBody() String getRelationships(@RequestParam Map<String, String> params, HttpServletRequest request); @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Relationship for the uuid path") @ResponseBody() String getRelationshipByUuid(@PathVariable("uuid") String uuid, HttpServletRequest request); @RequestMapping(method = RequestMethod.GET) @WSDoc("Get All Unretired Relationships in the system") @ResponseBody() String getAllRelationships(HttpServletRequest request, HttpServletResponse response);  }
@Test public void testGetRelationshipByUuid() throws Exception { String result = controller.getRelationshipByUuid("c18717dd-5d78-4a0e-84fc-ee62c5f0676a", request); Assert.assertNotNull(result); }