ported test
moved to nio bytebuffer for container request