UnavailableException extends ServletException { public boolean isPermanent() { return permanent; } UnavailableException(String message);  UnavailableException(String message, int unavailableSeconds); @Deprecated  UnavailableException(Servlet servlet, String message); @Deprecated  UnavailableException(int unavailableSeconds, Servlet servlet, String message); @Deprecated Servlet getServlet(); int getUnavailableSeconds(); boolean isPermanent();  }
@Test void testIsPermanent() { UnavailableException exception = new UnavailableException("Unavailable"); assertTrue(exception.isPermanent()); }