Code example for NoSuchAlgorithmException

0
    protected Object[] getData() { 
        Exception cause = new Exception(msgs[1]); 
        NoSuchAlgorithmException dExc = new NoSuchAlgorithmException(msgs[0], cause); 
        String msg = null; 
        Throwable th = null; 
        return new Object[] { new NoSuchAlgorithmException(), new NoSuchAlgorithmException(msg), 
                new NoSuchAlgorithmException(msgs[1]), 
                new NoSuchAlgorithmException(new Throwable()), new NoSuchAlgorithmException(th), 
                new NoSuchAlgorithmException(msgs[1], dExc) }; 
    } 
 
    public static void main(String[] args) { 
       junit.textui.TestRunner.run(NoSuchAlgorithmExceptionTest.class); 
    } 
}