@Test
public void testUnsubscribeOnlyOnce() {

    Action0 unsubscribe = mock(Action0.class);
    Subscription subscription = create(unsubscribe);
    subscription.unsubscribe();
    subscription.unsubscribe();
    verify(unsubscribe, times(1)).call();
}