PMDException extends Exception { public void setSeverity( final int severityToBeSet ) { severity = severityToBeSet; } PMDException( final String message );  PMDException( final String message,
                        final Exception reason ); @Deprecated Exception getReason(); int getSeverity(); void setSeverity( final int severityToBeSet );  }
@Test public void testSetSeverity() { final PMDException exception = new PMDException( "message" ); exception.setSeverity( 1 ); assertEquals( Integer.valueOf( 1 ), Integer.valueOf( exception.getSeverity() ) ); }