@Test
public void testRelease() throws Exception {

    subscriber.withFilter(filter);
    subscriber.withScheduler(scheduler);
    subscriber.release();
    assertNull(subscriber.getEventClass());
    assertNull(subscriber.getFilter());
    assertNull(subscriber.getScheduler());
    try {
        subscriber.acceptEvent(object);
        fail("Expected an NullPointerException to be thrown");
    } catch (NullPointerException e) {
        assertTrue(true);
    }
}