BedReader { public static Iterable<BedRecord> read(final Readable readable) throws IOException { checkNotNull(readable); Collect collect = new Collect(); stream(readable, collect); return collect.records(); } private  BedReader(); static Iterable<BedRecord> read(final Readable readable); static void stream(final Readable readable, final BedListener listener);  }
@Test(expected=NullPointerException.class) public void testReadNullReadable() throws Exception { read(null); }
@Test public void testRead() throws Exception { for (BedRecord record : read(readable)) { assertNotNull(record); } }
@Test(expected=IOException.class) public void testReadInvalid() throws Exception { read(new StringReader("invalid")); }