@Test
public void testChosenObservableThrows() {

    Observable<Integer> source1 = Observable.from(1, 2, 3);
    Observable<Integer> source2 = Observable.error(new RuntimeException("Forced failure"));
    Map<Integer, Observable<Integer>> map = new HashMap<Integer, Observable<Integer>>();
    map.put(1, source1);
    map.put(2, source2);
    Observable<Integer> result = Statement.switchCase(func, map);
    observe(result, 1, 2, 3);
    observeError(result, RuntimeException.class);
}