@Test
public void testMultiRecommendToAnonymousRescorer() {
RescorerProvider multi =
new MultiRescorerProvider(new SimpleModRescorerProvider(2), new SimpleModRescorerProvider(3));
IDRescorer provider = multi.getRecommendToAnonymousRescorer(new long[]{5}, (MyrrixRecommender) null);
assertNull(provider);
provider = multi.getRecommendToAnonymousRescorer(new long[]{2}, (MyrrixRecommender) null);
assertNotNull(provider);
assertFalse(provider instanceof MultiRescorer);
assertTrue(provider.isFiltered(3));
assertFalse(provider.isFiltered(2));
provider = multi.getRecommendToAnonymousRescorer(new long[]{6}, (MyrrixRecommender) null);
assertNotNull(provider);
assertTrue(provider instanceof MultiRescorer);
assertTrue(provider.isFiltered(3));
assertTrue(provider.isFiltered(2));
assertFalse(provider.isFiltered(12));
}