@Test
   void testReadUntilNull() {

	ByteBuffer bb = ByteBuffer.allocate(4);
	byte[] b = new byte[] { 'H', 'D', 'F', Constants.NULL };
	bb.put(b);
	bb.rewind();
	assertThat(Utils.readUntilNull(bb), is(equalTo("HDF")));
}