NotAServletEnvironmentException extends RuntimeException { public NotAServletEnvironmentException() { } NotAServletEnvironmentException();  NotAServletEnvironmentException(String message);  NotAServletEnvironmentException(Throwable e);  NotAServletEnvironmentException(String message, Throwable e);   }
@Test public void testNotAServletEnvironmentException() { NotAServletEnvironmentException exception = new NotAServletEnvironmentException(); assertNull(exception.getMessage()); assertNull(exception.getCause()); }