@Test public void shouldCorrectlyAllowItems() { Context<String, String> context = new FilteringContext<>("test", new SimpleConfig(1, 2), testFilters, testBlacklist); assertTrue(context.allow("allowed", "test")); assertFalse(context.allow("excluded", "test")); assertFalse(context.allow("blacklisted", "test")); assertTrue(context.allow("disallowed", "test")); context.disallow("disallowed"); assertFalse(context.allow("disallowed", "test")); }