Code example for ShortBufferException

0
        @Override 
        protected int engineGenExemptionBlob(byte[] output, int outputOffset)
        throws ShortBufferException, ExemptionMechanismException { 
            if (output.length - outputOffset <
                    super.engineGenExemptionBlob(output, outputOffset)) {
                throw new ShortBufferException();
            } 
            if (output[outputOffset + 3] == 33) {
                throw new ExemptionMechanismException();
            } 
            return super.engineGenExemptionBlob(output, outputOffset);
        } 
    } 
 
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "genExemptionBlob", 
            args = {} 
        ),