Code example for MGF1ParameterSpec

0
    ) 
    public final void testMGF1ParameterSpec01() { 
        try { 
            MGF1ParameterSpec pgf = new MGF1ParameterSpec(testAlgName);
            assertNotNull(pgf);
            assertTrue(pgf instanceof MGF1ParameterSpec);
        } catch (Exception e) {
            fail("Unexpected exception: " + e);
        } 
    } 
 
    /** 
     * Test #2 for <code>MGF1ParameterSpec</code> constructor<br> 
     * Assertion: <code>NullPointerException</code> if parameter is <code>null</code> 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "MGF1ParameterSpec", 
        args = {java.lang.String.class}
    )