Code example for PreferenceChangeEvent

0
/** 
 *  
 */ 
@TestTargetClass(PreferenceChangeEvent.class)
public class PreferenceChangeEventTest extends TestCase {
 
    PreferenceChangeEvent event;
 
    @Override protected void setUp() throws Exception { 
        super.setUp(); 
        TestEnvironment.reset(); 
    } 
 
    @Override protected void tearDown() throws Exception { 
        super.tearDown(); 
    } 
 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Checks exception.", 
        method = "PreferenceChangeEvent",