Code example for NoSuchProviderException

Methods: getCause, getMessage

0
     * Assertion: constructs NoSuchProviderException when <code>msg</code> is 
     * null 
     */ 
    public void testNoSuchProviderException03() { 
        String msg = null;
        NoSuchProviderException tE = new NoSuchProviderException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
}