@Test
public void installTest() throws Exception {

    File jar = createJar();
    aether(localRepo, mavenSettings).install(jar, "testGroupId", "testArtifactId", "testVersion");
    File artifactDirectory = directoryContains(localRepo, "testGroupId", "testArtifactId", "testVersion");
    assertThat(artifactDirectory, DirectoryMatcher.contains("testArtifactId-testVersion.jar", "testArtifactId-testVersion.pom"));
}