@Test
public void testIfThenElseObservableThrows() {

    Observable<Integer> source1 = Observable.from(1, 2, 3);
    Observable<Integer> source2 = Observable.error(new RuntimeException("Forced failure!"));
    Observable<Integer> result = Statement.ifThen(condition, source1, source2);
    observe(result, 1, 2, 3);
    observeError(result, RuntimeException.class);
    observe(result, 1, 2, 3);
    observeError(result, RuntimeException.class);
}