### Question:
RetrieveLocationsController { @GetMapping(value = ENDPOINT) public ResponseEntity retrieveLocations() { final RetrieveLocationsHttpResponse retrieveLocationsHttpResponse = adapter .retrieveLocations(); final List<Location> locations = retrieveLocationsHttpResponse.getLocations(); return ResponseEntity.ok(locations); } RetrieveLocationsController(final RetrieveLocationsInputPort inputPort); @GetMapping(value = ENDPOINT) ResponseEntity retrieveLocations();  }### Answer:
@Test public void test_retrieveLocations_returnsLocations() { final RetrieveLocationsController retrieveLocationsController = new RetrieveLocationsController( new MockRetrieveLocationsInputPort()); final ResponseEntity<?> responseEntity = retrieveLocationsController.retrieveLocations(); final List<Location> locations = (List<Location>) responseEntity.getBody(); Assertions.assertFalse(locations.isEmpty()); }