ControllerException extends RuntimeException { @JsonProperty public HttpStatus getStatus() { return status; } ControllerException(HttpStatus status, String errorId, String message);  ControllerException(HttpStatus status, String errorId, String message, Throwable cause); @JsonProperty HttpStatus getStatus(); @JsonProperty @Override String getMessage(); @JsonProperty String getErrorId();  }
@Test public void testGetStatus_1() throws Exception { ControllerException fixture = new ControllerException(HttpStatus.ACCEPTED, "1", "message", new Throwable()); HttpStatus result = fixture.getStatus(); assertNotNull(result); assertEquals(202, result.value()); assertEquals("202", result.toString()); assertEquals("Accepted", result.getReasonPhrase()); assertEquals("ACCEPTED", result.name()); assertEquals(6, result.ordinal()); }