UnavailableException extends ServletException { public int getUnavailableSeconds() { return unavailableSeconds; } 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 testConstructor() { UnavailableException exception = new UnavailableException("Unavailable", 100); assertEquals(100, exception.getUnavailableSeconds()); }
@Test void testGetUnavailableSeconds() { UnavailableException exception = new UnavailableException("Unavailable"); assertEquals(-1, exception.getUnavailableSeconds()); }