Router { @ExceptionHandler(value = { HttpException.class }) protected ResponseEntity handleHttpException(final HttpException ex, final WebRequest request) { logger.warn("Unexpected exception:", ex); return ResponseEntity.status(ex.getStatusCode()).body(handleThrowable(ex, request)); }  @PostConstruct void initialize(); @GetMapping("contract") DeploymentResult getLatestContract(); @GetMapping("builds") List<BuildSummary> getLatestBuilds(); @GetMapping("build/{uuid}") BuildDetails getBuild(@PathVariable("uuid") final String buildUuid); @PostMapping("build/{uuid}/deploy") DeploymentResult deploy(@PathVariable("uuid") final String buildUuid); @PostMapping(value = "contract/{tx}/{function}") ExecutionResult execute(
      @PathVariable("tx") final String contractTransactionHash,
      @PathVariable("function") final String functionName,
      @RequestBody final ContractInput contractInput); @GetMapping(value = "contract/{tx}/{function}") QueryResult query(
      @PathVariable("tx") final String contractTransactionHash,
      @PathVariable("function") final String functionName,
      @RequestParam(value = "arguments", required = false) final String[] arguments
  );  }
@Test public void testHandleHttpException() { final HttpException httpException = new HttpException(500); final WebRequest webRequest = mock(WebRequest.class); final ResponseEntity responseEntity = router.handleHttpException(httpException, webRequest); assertNotNull(responseEntity); }