}
@Test
public void ensureResourcesAreReleasedWhenDisposed() {
Schedule s = new Schedule("New Schedule");
ListenerReport before = s.reportListeners();
Handler handler = new Handler(s);
handler.dispose();
ListenerReport after = s.reportListeners();
assertEquals(before.getItems(ListenerReport.PROPERTY_CHANGE_CATEGORY).size(),
after.getItems(ListenerReport.PROPERTY_CHANGE_CATEGORY).size());
}