@Test
public void testHasOpenedStructs() {

  final JBBPDslBuilder dsl = Begin();
  assertFalse(dsl.hasOpenedStructs());
  dsl.Struct();
  assertTrue(dsl.hasOpenedStructs());
  dsl.CloseStruct();
  assertFalse(dsl.hasOpenedStructs());
}