@Test
public void dispose() {

    TestDisposableSubscriber<Integer> tc = new TestDisposableSubscriber<Integer>();
    assertFalse(tc.isDisposed());
    tc.dispose();
    assertTrue(tc.isDisposed());
    BooleanSubscription d = new BooleanSubscription();
    tc.onSubscribe(d);
    assertTrue(d.isCancelled());
    assertEquals(0, tc.start);
}