@Test
public void testCompile_ByteFieldAndNamedStructureWithSingleNamedIntField() throws Exception {

  final JBBPCompiledBlock block = JBBPCompiler.compile("byte ; some {int HeLLo;} ");
  final byte[] compiled = block.getCompiledData();
  assertEquals(5, compiled.length);
  assertEquals(JBBPCompiler.CODE_BYTE, compiled[0] & 0xFF);
  assertEquals(JBBPCompiler.CODE_STRUCT_START | JBBPCompiler.FLAG_NAMED, compiled[1]);
  assertEquals(JBBPCompiler.CODE_INT | JBBPCompiler.FLAG_NAMED, compiled[2] & 0xFF);
  assertEquals(JBBPCompiler.CODE_STRUCT_END, compiled[3]);
  assertEquals(1, compiled[4]);
  assertEquals(2, block.findFieldOffsetForPath("some.hello"));
}