### Question:
StreamSource extends RandomAccessStream { @Override public void close() { if (input != null) { try { input.close(); } catch (IOException e) { e.printStackTrace(); } } } StreamSource(SmbFile file, long l); void open(); @Override int read(); int read(byte[] bytes, int start, int offs); @Override void moveTo(long position); @Override void close(); String getMimeType(); String getName(); SmbFile getFile();  }### Answer:
@Test public void close() throws IOException { ss.open(); ss.close(); int n = -1; try { byte[] buff = new byte[1]; n = ss.read(buff); } catch (IOException ignored) { } assertEquals(-1, n); }