@Test
public void testCSVConfig() throws Exception {

    DataSetDef dataSetDef = DataSetDefFactory.newCSVDataSetDef()
            .datePattern("dd/MM/yyyy")
            .numberPattern("#,###")
            .allColumns(true)
            .buildDef();
    DataSet dataSet = DataSetFactory.newDataSetBuilder()
            .date("date")
            .number("number")
            .row(new Date(), 1d)
            .buildDataSet();
    when(dataSetLookupServices.lookupDataSet(any(), any())).thenReturn(dataSet);
    tested.show(dataSetDef, null, displayerListener);
    ArgumentCaptor<Displayer> argumentCaptor = ArgumentCaptor.forClass(Displayer.class);
    verify(displayerListener).onDataLoaded(argumentCaptor.capture());
    Displayer displayer = argumentCaptor.getValue();
    DisplayerSettings settings = displayer.getDisplayerSettings();
    assertEquals(settings.getColumnSettings("date").getValuePattern(), "dd/MM/yyyy");
    assertEquals(settings.getColumnSettings("number").getValuePattern(), "#,###");
}