@Test
public void testCompile_WholeStreamArrayInsideStructure() throws Exception {

  final JBBPCompiledBlock block = JBBPCompiler.compile("test {byte [_];}");
  assertEquals(5, block.getCompiledData().length);
  assertEquals(JBBPCompiler.CODE_STRUCT_START | JBBPCompiler.FLAG_NAMED, block.getCompiledData()[0]);
  assertEquals(JBBPCompiler.CODE_BYTE | JBBPCompiler.FLAG_WIDE, block.getCompiledData()[1] & 0xFF);
  assertEquals(JBBPCompiler.EXT_FLAG_EXPRESSION_OR_WHOLESTREAM, block.getCompiledData()[2] & 0xFF);
  assertEquals(JBBPCompiler.CODE_STRUCT_END, block.getCompiledData()[3]);
  assertEquals(0, block.getCompiledData()[4]);
}