@Test
  public void testRead_wholeArray() throws IOException {
    JimfsInputStream in = newInputStream(1, 2, 3, 4, 5, 6, 7, 8);
    byte[] bytes = new byte[8];
    assertThat(in.read(bytes)).isEqualTo(8);
    assertArrayEquals(bytes(1, 2, 3, 4, 5, 6, 7, 8), bytes);
    assertEmpty(in);
  }
Tests for {@link JimfsInputStream}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/JimfsInputStreamTest.java