Code example for ShortBufferException

0
            "New message", 
            "Long message for Exception. Long message for Exception. Long message for Exception." }; 
 
    protected Object[] getData() { 
        return new Object[] { new ShortBufferException(), 
                new ShortBufferException(null), new ShortBufferException(msgs[1]) }; 
    } 
 
    public static void main(String[] args) { 
        junit.textui.TestRunner.run(ShortBufferExceptionTest.class); 
    } 
}