verify(indexFilterData).setSubscriptionInclusions(ImmutableSet.of("inclusionA","inclusionB"));
}
private IndexInfo createMockIndexInfo(String queueSubscriptionId, boolean include) {
IndexInfo indexInfo = mock(IndexInfo.class, Mockito.RETURNS_DEEP_STUBS);
IndexRecordFilter indexRecordFilter = mock(IndexRecordFilter.class);
when(indexInfo.getLilyIndexerConf().getRecordFilter()).thenReturn(indexRecordFilter);
doReturn(include).when(indexFilterHook).indexIsApplicable(indexRecordFilter, Table.RECORD.name, oldRecord, newRecord);
when(indexInfo.getIndexDefinition().getSubscriptionId()).thenReturn(queueSubscriptionId);
when(indexInfo.getRepositoryName()).thenReturn(RepoAndTableUtil.DEFAULT_REPOSITORY);