@Test
public void testDescriptiveOnly() throws Exception {

    File file = new File(ClassLoader.getSystemResource("EFT/S001-01-t10_01.eft").toURI());
    EbtsParser ebtsParser = new EbtsParser();
    Ebts ebtsDescriptiveOnly = ebtsParser.parse(file,ParseType.DESCRIPTIVE_ONLY);
    Ebts ebts = ebtsParser.parse(file,ParseType.FULL);
    //Type 1 and 2 only parsed
    assertEquals(2,ebtsDescriptiveOnly.getAllRecords().size());
    //Same number of fields
    assertEquals(ebts.getRecordsByType(1).get(0).getLength(),ebtsDescriptiveOnly.getRecordsByType(1).get(0).getLength());
    assertEquals(ebts.getRecordsByType(2).get(0).getLength(),ebtsDescriptiveOnly.getRecordsByType(2).get(0).getLength());
}