public static void Test()
{
testAllocate();
test(0, ByteBuffer.Allocate(7 * 1024), false);
test(0, ByteBuffer.Wrap(new byte[7 * 1024], 0, 7 * 1024), false);
test(new byte[1024]);
// LUCENENET: AllocateDirect not implemented
//ByteBuffer b = ByteBuffer.AllocateDirect(7 * 1024);
//for (b.Position = (0); b.Position < b.Limit;)
// ck(b, b.Get(), 0);
//test(0, b, true);
callReset(ByteBuffer.Allocate(10));
}
}