### Question:
InvestorController { @GetMapping("/investors") public List<Investor> fetchAllInvestors() { return investorService.fetchAllInvestors(); }  @GetMapping("/investors") List<Investor> fetchAllInvestors(); @GetMapping(value="/investors/welcome", produces="text/plain;charset=UTF-8") String welcomePageWhichProducesCharset(); @GetMapping("/investors/{investorId}") Investor fetchInvestorById(@PathVariable String investorId); @GetMapping(path = "/investors/{investorId}/stocks") List<Stock> fetchStocksByInvestorId(@PathVariable String investorId,
			@RequestParam(value = "offset", defaultValue = "0") int offset,
			@RequestParam(value = "limit", defaultValue = "5") int limit); @GetMapping(path = "/investors/{investorId}/stocks/{symbol}", produces = { MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE }) Stock fetchAStockByInvestorIdAndStockId(@PathVariable String investorId, @PathVariable String symbol); @PostMapping("/investors/{investorId}/stocks") ResponseEntity<Void> addNewStockToTheInvestorPortfolio(@PathVariable String investorId,
			@RequestBody Stock newStock); @PutMapping("/investors/{investorId}/stocks") ResponseEntity<Void> updateAStockOfTheInvestorPortfolio(@PathVariable String investorId,
			@RequestBody Stock stockTobeUpdated); @PatchMapping("/investors/{investorId}/stocks/{symbol}") ResponseEntity<Void> updateAStockOfTheInvestorPortfolio(@PathVariable String investorId,
			@PathVariable String symbol, @RequestBody Stock stockTobeUpdated); @DeleteMapping("/investors/{investorId}/stocks/{symbol}") ResponseEntity<Void> deleteAStockFromTheInvestorPortfolio(@PathVariable String investorId,
			@PathVariable String symbol);  }### Answer:
@Test public void fetchAllInvestors() throws Exception{ RequestBuilder requestBuilder = MockMvcRequestBuilders.get( "/investors").accept( MediaType.APPLICATION_JSON); MvcResult result = mockMvc.perform(requestBuilder).andReturn(); MockHttpServletResponse response = result.getResponse(); System.out.println("here "+response); }