@Test
public void testToIterable() {

    BlockingObservable<String> obs = BlockingObservable.from(Observable.just("one", "two", "three"));
    Iterator<String> it = obs.toIterable().iterator();
    assertEquals(true, it.hasNext());
    assertEquals("one", it.next());
    assertEquals(true, it.hasNext());
    assertEquals("two", it.next());
    assertEquals(true, it.hasNext());
    assertEquals("three", it.next());
    assertEquals(false, it.hasNext());
}