### Question:
LifecycleException extends Exception { public boolean isSevere() { return severe; } LifecycleException( boolean severe );  LifecycleException( String message, boolean severe );  LifecycleException( Throwable cause, boolean severe );  LifecycleException( String message, Throwable cause, boolean severe ); boolean isSevere();  }### Answer:
@Test public void testIsSevere() throws Exception { assertTrue( exception.isSevere() ); }
@Test public void testThrowableMessageCtor() { Throwable t = mock( Throwable.class ); exception = new LifecycleException( "message", t, true ); assertEquals( t, exception.getCause() ); assertEquals( "message", exception.getMessage() ); assertTrue( exception.isSevere() ); }