### Question:
TriggerProjectProperty extends BaseProjectProperty<Trigger> { @Override protected void onCascadingProjectRemoved() { if (isOverridden() && null != getValue()) { getValue().stop(); resetValue(); } } TriggerProjectProperty(ICascadingJob job);   }### Answer:
@Test public void testOnCascadingProjectRemoved() throws ANTLRException { Trigger trigger = new TimerTrigger("* * * * *"); property.setOriginalValue(trigger, false); assertTrue(trigger == property.getOriginalValue()); assertFalse(property.isOverridden()); property.onCascadingProjectRemoved(); assertFalse(property.isOverridden()); assertTrue(trigger == property.getOriginalValue()); }
@Test public void testOnCascadingProjectRemoved() throws RecognitionException { Trigger trigger = new TimerTrigger("* * * * *"); property.setOriginalValue(trigger, false); assertTrue(trigger == property.getOriginalValue()); assertFalse(property.isOverridden()); property.onCascadingProjectRemoved(); assertFalse(property.isOverridden()); assertTrue(trigger == property.getOriginalValue()); }