@Test
public void testCompareTable_columnSelectionWithNonUniqueColunsOutsideMatch() throws Throwable {

    seleniumNavigationService.navigate_to_url(MockReferenceDatePopulator.COMPLEX_TABLE_TEST_PAGE_URL);
    WebElement table = seleniumElementService.translateLocatorToWebElement("Table locator");
    List<List<String>> expectedRows = new ArrayList<List<String>>();
    final List<String> header = Arrays.asList(new String[]{"Table header 1", "Table header 5"});
    final List<String> row1 = Arrays.asList(new String[]{"Table cell 1_1", "Table cell 1_5"});
    final List<String> row2 = Arrays.asList(new String[]{"<rowspan>", "<colspan>"});
    final List<String> row3 = Arrays.asList(new String[]{"Table cell 3_1", "Table cell 3_5"});
    final List<String> row4 = Arrays.asList(new String[]{"Table cell 4_1", "Table cell 4_5"});
    expectedRows = new ArrayList<List<String>>() {
        {
            add(header);
            add(row1);
            add(row2);
            add(row3);
            add(row4);
        }
    };
    DataTable expectedContent = mock(DataTable.class);
    when(expectedContent.raw()).thenReturn(expectedRows);
    ExpectedTableDefinition expectedTableDefinition = new ExpectedTableDefinition(expectedContent);
    expectedTableDefinition.setMatchOnlyPassedInColumns(true);
    seleniumTableService.compareTable(expectedTableDefinition, table);
}