@Test
public void validateSubscription() {

    BooleanSubscription d1 = new BooleanSubscription();
    assertFalse(EndConsumerHelper.validate(SubscriptionHelper.CANCELLED, d1, getClass()));
    assertTrue(d1.isCancelled());
    assertTrue(errors.toString(), errors.isEmpty());
}