### Question:
TableSelector { public boolean canProcess(ListenerEvent listenerEvent) { String tableNameToBeProcessed = listenerEvent.getDbName() + "." + listenerEvent.getTableName(); return tableNames.contains(tableNameToBeProcessed); } TableSelector(SourceTableFilter targetReplication); boolean canProcess(ListenerEvent listenerEvent);  }### Answer:
@Test public void returnsTrueWhenTableSelected() { assertThat(tableSelector.canProcess(listenerEvent)).isTrue(); }
@Test public void returnsFalseEventWhenTableNotSelected() { when(listenerEvent.getTableName()).thenReturn(TABLE_NAME + "1"); assertThat(tableSelector.canProcess(listenerEvent)).isFalse(); }