@Test
public void handleInvocationTargetExceptionShouldHandleCause(){

    CRestException expected = new CRestException();
    RequestException cause = new RequestException(expected);
    InvocationTargetException e = new InvocationTargetException(cause);
    assertSame(expected, CRestException.handle(e));
}