Test using Java nio direct buffers