### Question:
BrooklynMavenArtifacts { public static String localUrl(String subgroupUnderIoBrooklyn, String artifactId, String packaging) { return MavenRetriever.localUrl(artifact(subgroupUnderIoBrooklyn, artifactId, packaging)); }  static MavenArtifact jar(String artifactId); static MavenArtifact artifact(String subgroupUnderIoBrooklyn, String artifactId, String packaging); static MavenArtifact artifact(String subgroupUnderIoBrooklyn, String artifactId, String packaging, String classifier); static String localUrlForJar(String artifactId); static String localUrl(String subgroupUnderIoBrooklyn, String artifactId, String packaging); static String hostedUrlForJar(String artifactId); static String hostedUrl(String subgroupUnderIoBrooklyn, String artifactId, String packaging);  }### Answer:
@Test(groups="Integration") public void testExampleWar() { String url = BrooklynMavenArtifacts.localUrl("example", "brooklyn-example-hello-world-sql-webapp", "war"); ResourceUtils.create(this).checkUrlExists(url); log.info("found example war at: "+url); }
@Test(groups="Integration") public void testBadExampleWar() { String url = BrooklynMavenArtifacts.localUrl("example", "brooklyn-example-GOODBYE-world-sql-webapp", "war"); Assert.assertFalse(ResourceUtils.create(this).doesUrlExist(url), "should not exist: "+url); }