@Test
public void testCreateColumnHolderForMixModeColumnNames() {

    // GIVEN
    final String column1 = "tab.col1";
    final String column2 = "tab.col2";
    final String column3 = "col3";
    // WHEN
    final ColumnsHolder columnsHolder = new ColumnsHolder(new String[] {
            column1, column2, column3
    }, (final String n) -> n);
    // THEN
    List<String> columns = columnsHolder.getColumns("tab");
    assertThat(columns, notNullValue());
    assertThat(columns.size(), equalTo(3));
    assertThat(columns, hasItem(column1.substring(column1.indexOf('.') + 1)));
    assertThat(columns, hasItem(column2.substring(column2.indexOf('.') + 1)));
    assertThat(columns, hasItem(column3));
    columns = columnsHolder.getColumns("foo");
    assertThat(columns, notNullValue());
    assertThat(columns.size(), equalTo(1));
    assertThat(columns, hasItem(column3));
}