RestServiceException extends RuntimeException { public int getStatusCode() { return statusCode; } RestServiceException(String message, int statusCode); int getStatusCode();  }
@Test @Tag(TestGroups.FUNCTIONAL) public void testGetStatusCode() throws Exception { assertTrue(new RestServiceException("hi", 1).getStatusCode() == 1); }