SoapFaultMappingExceptionResolver extends AbstractSoapFaultDefinitionExceptionResolver { protected int getDepth(String exceptionMapping, Exception ex) { return getDepth(exceptionMapping, ex.getClass(), 0); }  void setExceptionMappings(Properties mappings);  }
@Test public void testGetDepth() throws Exception { Assert.assertEquals("Invalid depth for Exception", 0, resolver.getDepth("java.lang.Exception", new Exception())); Assert.assertEquals("Invalid depth for IllegalArgumentException", 2, resolver.getDepth("java.lang.Exception", new IllegalArgumentException())); Assert.assertEquals("Invalid depth for IllegalStateException", -1, resolver.getDepth("IllegalArgumentException", new IllegalStateException())); }