@Test public void testIfALabelIsIncludedItShouldNotBeExcluded() throws CmdLineException { TestCommandOptions options = new TestCommandOptions(new FakeBuckConfig()); new CmdLineParserAdditionalOptions(options) .parseArgument("-e", "e2e", "--exclude", "other", "--include", "e2e"); ImmutableSet<String> excluded = options.getExcludedLabels(); assertEquals("other", Iterables.getOnlyElement(excluded)); }