219220221222223224225226227228229
mbb.putInt(1, 1); mbb.position(50); mbb.putInt(50); mbb.flip(); mbb.get(); assertEquals(1, mbb.getInt()); mbb.position(50); assertEquals(50, mbb.getInt());