@Test
public void testDispose() {

    assertFalse(subscriber.isDisposed());
    subscriber.dispose();
    assertTrue(subscriber.isDisposed());
    verify(subscriber).release();
    subscriber.dispose();
    verify(subscriber, times(1)).release();
}