public RestException(Response.Status status, String message) {
        this(status.getStatusCode(), message);
    }
@Test
    public void testRestException() {
        RestException re = new RestException(Status.TEMPORARY_REDIRECT, "test rest exception");
        RestException testException = new RestException(re);

        assertEquals(Status.TEMPORARY_REDIRECT.getStatusCode(), testException.getResponse().getStatus());
        assertEquals(re.getResponse().getEntity(), testException.getResponse().getEntity());
    }