### Question:
AdminRouteServiceImpl implements AdminRouteService { @Override public Response deleteRoute(String routeId, HttpHeaders headers) { HttpEntity requestEntity = new HttpEntity(headers); ResponseEntity<Response> re = restTemplate.exchange( "http: HttpMethod.DELETE, requestEntity, Response.class); return re.getBody(); }  @Override Response getAllRoutes(HttpHeaders headers); @Override Response createAndModifyRoute(RouteInfo request, HttpHeaders headers); @Override Response deleteRoute(String routeId, HttpHeaders headers);  }### Answer:
@Test public void testDeleteRoute() { Mockito.when(restTemplate.exchange( "http: HttpMethod.DELETE, requestEntity, Response.class)).thenReturn(re); Response result = adminRouteServiceImpl.deleteRoute("routeId", headers); Assert.assertEquals(new Response<>(null, null, null), result); }