@Test
    public void testFromPolicySpec() {
        PluginCoordinates coordinates = PluginCoordinates.fromPolicySpec("plugin:io.apiman.test:testPlugin:1.0.0.Final:plug:war/io.apiman.test.PolicyImpl");
        Assert.assertNotNull(coordinates);
        Assert.assertEquals("io.apiman.test", coordinates.getGroupId());
        Assert.assertEquals("testPlugin", coordinates.getArtifactId());
        Assert.assertEquals("1.0.0.Final", coordinates.getVersion());
        Assert.assertEquals("plug", coordinates.getClassifier());
        Assert.assertEquals("war", coordinates.getType());

        coordinates = PluginCoordinates.fromPolicySpec("plugin:io.apiman.test:testPlugin:1.0.0.Final:war/io.apiman.test.PolicyImpl");
        Assert.assertNotNull(coordinates);
        Assert.assertEquals("io.apiman.test", coordinates.getGroupId());
        Assert.assertEquals("testPlugin", coordinates.getArtifactId());
        Assert.assertEquals("1.0.0.Final", coordinates.getVersion());
        Assert.assertNull(coordinates.getClassifier());
        Assert.assertEquals("war", coordinates.getType());

        coordinates = PluginCoordinates.fromPolicySpec("plugin:io.apiman.test:testPlugin:1.0.0.Final/io.apiman.test.PolicyImpl");
        Assert.assertNotNull(coordinates);
        Assert.assertEquals("io.apiman.test", coordinates.getGroupId());
        Assert.assertEquals("testPlugin", coordinates.getArtifactId());
        Assert.assertEquals("1.0.0.Final", coordinates.getVersion());
        Assert.assertNull(coordinates.getClassifier());
        Assert.assertEquals("war", coordinates.getType());
    }
Test method for {@link io.apiman.common.plugin.PluginCoordinates#fromPolicySpec(java.lang.String)}.
common/plugin/src/test/java/io/apiman/common/plugin/PluginCoordinatesTest.java