@Test
public void testCompile_ErrorForNonOpenedStructure() throws Exception {

  try {
    JBBPCompiler.compile("byte; int; } ");
    fail("Must throw IAE");
  } catch (JBBPCompilationException ex) {
    assertEquals(JBBPTokenType.STRUCT_END, ex.getToken().getType());
  }
}