@Test
 public void trim_inclusions_and_exclusions() {
   settings
       .setProperty(CoreProperties.PREVIEW_INCLUDE_PLUGINS, "checkstyle, pmd, findbugs")
       .setProperty(CoreProperties.PREVIEW_EXCLUDE_PLUGINS, "cobertura, pmd");
   BatchPluginPredicate predicate = new BatchPluginPredicate(settings, mode);
   assertThat(predicate.apply("pmd")).isTrue();
 }
 @Test
 public void accept_if_no_inclusions_nor_exclusions() {
   BatchPluginPredicate predicate = new BatchPluginPredicate(settings, mode);
   assertThat(predicate.getWhites()).isEmpty();
   assertThat(predicate.getBlacks()).isEmpty();
   assertThat(predicate.apply("pmd")).isTrue();
   assertThat(predicate.apply("buildbreaker")).isTrue();
 }
 @Test
 public void test_exclusions_without_any_inclusions() {
   when(mode.isPreview()).thenReturn(true);
   settings.setProperty(CoreProperties.PREVIEW_EXCLUDE_PLUGINS, "checkstyle,pmd,findbugs");
   BatchPluginPredicate predicate = new BatchPluginPredicate(settings, mode);
   assertThat(predicate.apply("checkstyle")).isFalse();
   assertThat(predicate.apply("pmd")).isFalse();
   assertThat(predicate.apply("cobertura")).isTrue();
 }
 @Test
 public void inclusions_take_precedence_over_exclusions() {
   when(mode.isPreview()).thenReturn(true);
   settings
       .setProperty(CoreProperties.PREVIEW_INCLUDE_PLUGINS, "checkstyle,pmd,findbugs")
       .setProperty(CoreProperties.PREVIEW_EXCLUDE_PLUGINS, "cobertura,pmd");
   BatchPluginPredicate predicate = new BatchPluginPredicate(settings, mode);
   assertThat(predicate.apply("pmd")).isTrue();
 }
 @Test
 public void verify_both_inclusions_and_exclusions_issues() {
   when(mode.isIssues()).thenReturn(true);
   settings
       .setProperty(CoreProperties.PREVIEW_INCLUDE_PLUGINS, "checkstyle,pmd,findbugs")
       .setProperty(CoreProperties.PREVIEW_EXCLUDE_PLUGINS, "cobertura");
   BatchPluginPredicate predicate = new BatchPluginPredicate(settings, mode);
   assertThat(predicate.apply("checkstyle")).isTrue();
   assertThat(predicate.apply("pmd")).isTrue();
   assertThat(predicate.apply("cobertura")).isFalse();
 }
 @Test
 public void exclude_buildbreaker_in_preview_mode() {
   when(mode.isPreview()).thenReturn(true);
   BatchPluginPredicate predicate = new BatchPluginPredicate(settings, mode);
   assertThat(predicate.apply("buildbreaker")).isFalse();
 }