ControllerException extends RuntimeException { @JsonProperty @Override public String getMessage() { return super.getMessage(); } 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 testGetMessage_1() throws Exception { ControllerException fixture = new ControllerException(HttpStatus.ACCEPTED, "1", "message", new Throwable()); String result = fixture.getMessage(); assertEquals("message", result); }