@Test public void testNestedServletExceptionStringThrowable() { Throwable cause = new RuntimeException(); NestedServletException exception = new NestedServletException("foo", cause); assertEquals(NestedExceptionUtils.buildMessage("foo", cause), exception.getMessage()); assertEquals(cause, exception.getCause()); }