code:     protected void _verifyException(Throwable t, Class<?> expExcType,
              String... patterns) throws Exception
      {
          Class<?> actExc = t.getClass();
          if (!expExcType.isAssignableFrom(actExc)) {
              fail("Expected Exception of type '"+expExcType.getName()+"', got '"
                      +actExc.getName()+"', message: "+t.getMessage());
          }
          for (String pattern : patterns) {
              verifyException(t, pattern);
          }
      }
  