@Test
public void shouldCreateFilterWithSchemaWhitelistAndTableWhitelist() {

    filter = Selectors.tableSelector()
            .includeSchemas("sc1,sc2")
            .includeTables("db\\.sc1\\.A,db\\.sc2\\.B")
            .build();
    assertAllowed(filter, "db", "sc1", "A");
    assertNotAllowed(filter, "db", "sc1", "B");
    assertAllowed(filter, "db", "sc2", "B");
    assertNotAllowed(filter, "db", "sc2", "A");
    assertNotAllowed(filter, "db", "sc1", "C");
    assertNotAllowed(filter, "db2", "sc2", "D");
    assertNotAllowed(filter, "db", "sc3", "A");
    assertNotAllowed(filter, "db2", "sc4", "B");
}