### Question:
WroRuntimeException extends RuntimeException { public static WroRuntimeException wrap(final Exception e) { return wrap(e, e.getMessage()); } WroRuntimeException(final String message, final Throwable cause);  WroRuntimeException(final String message); WroRuntimeException logError(); static WroRuntimeException wrap(final Exception e); static WroRuntimeException wrap(final Exception e, final String message); WroRuntimeException setResource(final Resource resource); Resource getResource();  }### Answer:
@Test public void shouldPreserveOriginalExceptionMessageWhenWrap() { final String message = "someMessage"; Exception e = new IllegalArgumentException(message); Exception result = WroRuntimeException.wrap(e); assertEquals(e.getMessage(), result.getMessage()); }
@Test public void shouldNotWrapWhenExceptionIsAWroRuntimeException() { final String message = "someMessage"; Exception e = new WroRuntimeException(message); Exception result = WroRuntimeException.wrap(e); assertSame(e, result); }