@Test
public void test1() throws IOException {
Random random = new Random(seed);
RAMDirectory directory = new RAMDirectory();
IndexOutput output = directory.createOutput("test", IOContext.DEFAULT);
Cache cache = CacheIndexInputTest.getCache();
CacheIndexOutput indexOutput = new CacheIndexOutput(null, "test", output, cache);
indexOutput.writeByte((byte) 1);
indexOutput.writeByte((byte) 2);