### Question:
CodeReviewCommentController { @ExceptionHandler(NotFoundException.class) @ResponseBody public FailJsonResponse entityNotFoundError() { return new FailJsonResponse(JsonResponseReason.ENTITY_NOT_FOUND); } @Autowired  CodeReviewCommentController(PostCommentService postCommentService,
                                       PostService postService,
                                       BBCodeService bbCodeService); @InitBinder void initBinder(WebDataBinder binder); @RequestMapping(value = "/reviews/{postId}", method = RequestMethod.GET) @ResponseBody JsonResponse getCodeReview(@PathVariable("postId") Long postId); @RequestMapping(value = "/review/comment/edit/{commentId}", method = RequestMethod.GET) @ResponseBody JsonResponse getCodeReviewCommentForEdit(@PathVariable("commentId") Long commentId); @RequestMapping(value = "/review/comment/render/{commentId}", method = RequestMethod.GET) @ResponseBody JsonResponse getCodeReviewCommentForRender(@PathVariable("commentId") Long commentId); @RequestMapping(value="/reviewcomments/new", method = RequestMethod.POST) @ResponseBody JsonResponse addComment(
            @Valid @ModelAttribute CodeReviewCommentDto commentDto,
            BindingResult bindingResult,
            @RequestParam("postId") Long postId); @RequestMapping(value = "/reviewcomments/delete", method = RequestMethod.GET) @ResponseBody JsonResponse deleteComment(
            @RequestParam(COMMENT_ID) Long commentId,
            @RequestParam(POST_ID) Long postId); @RequestMapping(value="/reviewcomments/edit", method = RequestMethod.POST) @ResponseBody JsonResponse editComment(
            @Valid @ModelAttribute CodeReviewCommentDto commentDto,
            BindingResult bindingResult,
            @RequestParam("branchId") long branchId); @ExceptionHandler(AccessDeniedException.class) @ResponseBody FailJsonResponse securityError(); @ExceptionHandler(NotFoundException.class) @ResponseBody FailJsonResponse entityNotFoundError(); static final String POST_ID; static final String COMMENT_ID; }### Answer:
@Test public void testEntityNotFoundError() { FailJsonResponse response = controller.entityNotFoundError(); assertEquals(response.getStatus(), JsonResponseStatus.FAIL); assertEquals(response.getReason(), JsonResponseReason.ENTITY_NOT_FOUND); assertNull(response.getResult()); }