@Test
public void testConstructor_Name_ListOfFields() {

  final JBBPFieldStruct struct = new JBBPFieldStruct(new JBBPNamedFieldInfo("test.struct", "struct", 999), JBBPUtils.fieldsAsList(new JBBPFieldByte(null, (byte) 123), new JBBPFieldByte(null, (byte) -123)));
  assertNotNull(struct.getNameInfo());
  assertEquals("test.struct", struct.getNameInfo().getFieldPath());
  assertEquals("struct", struct.getNameInfo().getFieldName());
  assertEquals(999, struct.getNameInfo().getFieldOffsetInCompiledBlock());
  assertEquals(2, struct.getArray().length);
}