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