builder.setName(structureName);
builder.addSegment("Order", SegmentOccurrence.ZeroOrMore);
builder.addField("Date", FieldDataType.Date, "", "yyyy-MM-DD");
builder.addField("OrderNo", FieldDataType.Integer, "", "");
builder.closeSegment();
TextStructure struct = builder.getStructure();
validateStructure(struct);
assertEquals(structureName, struct.getName());
} catch (Exception ex) {
ex.printStackTrace();
fail();
}
}