public virtual void TestIllegalEOF()
{
RAMDirectory dir = new RAMDirectory();
IndexOutput o = dir.CreateOutput("out", NewIOContext(Random));
var b = new byte[1024];
o.WriteBytes(b, 0, 1024);
o.Dispose();
IndexInput i = dir.OpenInput("out", NewIOContext(Random));
i.Seek(1024);
i.Dispose();
dir.Dispose();
}