assertTrue(doubleInclusion.isExecutable(Arrays.asList("tag2", "tag4")));
}
@Test
public void a_include_and_an_exclude_tag() {
final Filter doubleInclusion = new Filter("tag1, ~tag2");
assertFalse(doubleInclusion.isExecutable(null));
assertFalse(doubleInclusion.isExecutable(Collections.emptyList()));
assertTrue(doubleInclusion.isExecutable(Arrays.asList("tag1", "tag3")));
assertFalse(doubleInclusion.isExecutable(Arrays.asList("tag2", "tag4")));
assertFalse(doubleInclusion.isExecutable(Arrays.asList("tag1", "tag2")));
assertTrue(doubleInclusion.isExecutable(Arrays.asList("tag4", "tag1")));
}