### Question:
CloudStreamSource extends RandomAccessStream { public void open() throws IOException { try { if (fp > 0) inputStream.skip(fp); } catch (Exception e) { throw new IOException(e); } } CloudStreamSource(String fileName, long length, InputStream inputStream); void open(); @Override int read(); @Override int read(byte[] bytes, int start, int offs); @Override void close(); String getName(); @Override void moveTo(long position);  }### Answer:
@Test public void open() throws IOException { cs.open(); byte[] buff = new byte[1]; assertEquals(buff.length, cs.read(buff)); assertEquals(text[0], buff[0]); }