@Test
public void testGetArtifactClassifierWithAttachId() {

    TargetEnvironment env = new TargetEnvironment("os", "ws", "arch");
    Product product = new Product("product.id", "attachId");
    String classifier = ProductArchiverMojo.getArtifactClassifier(product, env);
    assertEquals("attachId-os.ws.arch", classifier);
}