@Test
void testCreatingAndReadingMessage() {

	// 4 bytes for size and 4 for a float
	ByteBuffer bb = ByteBuffer.allocate(8);
	bb.putInt(4);
	bb.putFloat(123.45f);
	bb.rewind();
	FillValueOldMessage fillValueOldMessage = new FillValueOldMessage(bb, BitSet.valueOf(new byte[1]));
	ByteBuffer fillValueBuffer = fillValueOldMessage.getFillValue();
	assertThat(fillValueBuffer.getFloat(), is(equalTo(123.45f)));
	// Check the buffer is read only
	assertThrows(ReadOnlyBufferException.class, () -> fillValueBuffer.putInt(12));
}