@Test
void testUnrecognisedDataLayoutMessage() {

	HdfFileChannel hdfFileChannel = mock(HdfFileChannel.class);
	ObjectHeader objectHeader = mock(ObjectHeader.class);
	String name = "test";
	Group group = mock(Group.class);
	when(objectHeader.getMessageOfType(DataLayoutMessage.class))
			.thenReturn(new UnknownDataLayoutMessage(new BitSet()));
	assertThrows(HdfException.class, () -> DatasetLoader.createDataset(hdfFileChannel, objectHeader, name, group));
}