IsSnapshotPlugin implements Predicate<Plugin> { @Override public boolean apply(Plugin p) { String version = p.getVersion(); version = propertyResolver.expandPropertyReferences(version); return version != null && MavenVersionUtil.isSnapshot(version); } IsSnapshotPlugin(PomPropertyResolver propertyResolver); @Override boolean apply(Plugin p);  }
@Test @UseDataProvider("plugins") public void TestApply(Plugin p, boolean expected) { Assert.assertEquals(expected, predicate.apply(p)); }