@Test
public void testCompile_StructureAndArrayWithLengthFromStructureField() throws Exception {

  final JBBPCompiledBlock block = JBBPCompiler.compile("str {byte size;} byte[str.size] some;");
  assertTrue(block.hasEvaluatedSizeArrays());
  assertNotNull(block.findFieldForPath("str.size"));
  assertNotNull(block.findFieldForPath("some"));
}