I have a endpoint with the below signature
@RequestMapping(method = RequestMethod.GET, value = "/{id}", produces = {"application/json; charset=UTF-8"})
@Transactional(readOnly = true)
@ResponseBody
public HashMap<String, Object> myMethod(@PathVariable("id") Long id) {...}`
And I want to make a call with RestTemplate for unit testing. How I can do that because in method getForObject
I can't put a collection as a responseType.
Any ideea?