@Test
public void testSequentialSalience() {

    final ConversionResult result = new ConversionResult();
    final List<DataListener> listeners = new ArrayList<DataListener>();
    final GuidedDecisionTableGeneratorListener listener = new GuidedDecisionTableGeneratorListener(result,
                                                                                                   dmo);
    listeners.add(listener);
    //Convert
    final ExcelParser parser = new ExcelParser(listeners);
    final InputStream is = this.getClass().getResourceAsStream("SequentialSalience.xls");
    try {
        parser.parseFile(is);
    } finally {
        try {
            is.close();
        } catch (IOException ioe) {
            fail(ioe.getMessage());
        }
    }
    //Check conversion results
    assertEquals(0,
                 result.getMessages().size());
    //Check basics
    List<GuidedDecisionTable52> dtables = listener.getGuidedDecisionTables();
    assertNotNull(dtables);
    assertEquals(1,
                 dtables.size());
    GuidedDecisionTable52 dtable = dtables.get(0);
    assertEquals("SequentialSalienceTest",
                 dtable.getTableName());
    assertEquals(GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY,
                 dtable.getTableFormat());
    //Check expanded columns
    List<BaseColumn> columns = dtable.getExpandedColumns();
    assertNotNull(columns);
    assertEquals(4,
                 columns.size());
    assertTrue(columns.get(0) instanceof RowNumberCol52);
    assertTrue(columns.get(1) instanceof RuleNameColumn);
    assertTrue(columns.get(2) instanceof DescriptionCol52);
    assertTrue(columns.get(3) instanceof AttributeCol52);
    //Check attribute column
    AttributeCol52 attrCol2 = ((AttributeCol52) columns.get(3));
    assertEquals(Attribute.SALIENCE.getAttributeName(),
                 attrCol2.getAttribute());
    assertTrue(attrCol2.isUseRowNumber());
    assertTrue(attrCol2.isReverseOrder());
    //Check data
    assertEquals(2,
                 dtable.getData().size());
    assertTrue(isRowEquivalent(new Object[]{1, "", "Rule 1", 2},
                               dtable.getData().get(0)));
    assertTrue(isRowEquivalent(new Object[]{2, "", "Rule 2", 1},
                               dtable.getData().get(1)));
}