@Test
public void testWriteOnlyAttachedArtifactLocation() throws Exception {

    Map<String, File> artifactLocations = new HashMap<>();
    artifactLocations.put("other-classifier", OTHER_ARTIFACT);
    P2MetadataMojo.writeArtifactLocations(testFile, artifactLocations);
    Properties result = loadProperties(testFile);
    assertEquals(1, result.size());
    assertEquals(OTHER_ARTIFACT.getCanonicalFile(), getFileEntry("artifact.attached.other-classifier", result));
}