refactoring
testWIthByteBuffer