@Test
public void testCompile_ByteFieldAndNamedStructureWithIncludedStructureWithSingleNamedIntField() throws Exception {

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