DeltaSessionDestroyAttributeEvent implements DeltaSessionAttributeEvent { @Override public void apply(DeltaSessionInterface session) { session.localDestroyAttribute(this.attributeName); } @SuppressWarnings("unused")  DeltaSessionDestroyAttributeEvent();  DeltaSessionDestroyAttributeEvent(String attributeName); @Override void apply(DeltaSessionInterface session); @Override void fromData(DataInput in); @Override void toData(DataOutput out); String toString();  }
@Test public void DeltaSessionDestroyAttributeEventAppliesAttributeToSession() { final String attributeName = "DestroyAttribute"; final DeltaSessionDestroyAttributeEvent event = new DeltaSessionDestroyAttributeEvent(attributeName); final DeltaSessionInterface deltaSessionInterface = mock(DeltaSessionInterface.class); event.apply((deltaSessionInterface)); verify(deltaSessionInterface).localDestroyAttribute(attributeName); }