@Test
public void dispose() {

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