{
byte[] bytes = new byte[] { 1, 2, 3, 4, 5 };
MockVFSContext context = registerSimpleVFSContext();
context.getMockRoot().setStream(bytes);
VirtualFile file = VFS.getRoot(context.getRootURI());
InputStream stream = file.openStream();
assertEquals(1, stream.read());
file.closeStreams();
assertEquals(-1, stream.read());
}