Code example for Annotation

0
        assertNotNull(new Annotation("value"));
    } 
 
    /** 
     * @tests java.text.Annotation.getValue() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getValue", 
        args = {} 
    ) 
    public void testGetValue() { 
        Annotation a = new Annotation(null);
        assertNull(a.getValue());
        a = new Annotation("value");
        assertEquals("value", a.getValue());
    } 
 
    /** 
     * @tests java.text.Annotation.toString()