@Test
  public void test4() throws EvictionException {
    ByteArrayCacheValue value = new ByteArrayCacheValue(10);
    byte[] buf = "hello world".getBytes();
    value.write(8, buf, 0, 2);

    assertEquals('h', value.read(8));
    assertEquals('e', value.read(9));
  }
 @Test
 public void test1() throws EvictionException {
   ByteArrayCacheValue value = new ByteArrayCacheValue(10);
   byte[] buf = "hello world".getBytes();
   value.write(0, buf, 0, 10);
   byte[] buf2 = new byte[10];
   value.read(0, buf2, 0, 10);
   assertArrayEquals("hello worl".getBytes(), buf2);
 }