### Question:
MavenUtil { static String pathFromAether(String name) { DefaultArtifact artifact = new DefaultArtifact(name); Artifact mavenArtifact = RepositoryUtils.toArtifact(artifact); return layout.pathOf(mavenArtifact); }    }### Answer:
@Test public void testPathFromAether() throws Exception { assertEquals("org/foo/org.foo.bar/1.0-SNAPSHOT/org.foo.bar-1.0-SNAPSHOT.jar", pathFromAether("org.foo:org.foo.bar:1.0-SNAPSHOT")); assertEquals("org/foo/org.foo.bar/1.0-SNAPSHOT/org.foo.bar-1.0-SNAPSHOT.kar", pathFromAether("org.foo:org.foo.bar:kar:1.0-SNAPSHOT")); assertEquals("org/foo/org.foo.bar/1.0-SNAPSHOT/org.foo.bar-1.0-SNAPSHOT-features.xml", pathFromAether("org.foo:org.foo.bar:xml:features:1.0-SNAPSHOT")); }