@Test
  public void testCopyMissingP2Inf() throws IOException {
    File productFile = new File(sourceDirectory, "test.product");
    productFile.createNewFile();

    File p2InfTarget = new File(targetDirectory, "p2.inf");
    PublishProductMojo.copyP2Inf(PublishProductMojo.getSourceP2InfFile(productFile), p2InfTarget);
    Assert.assertFalse(p2InfTarget.exists());
  }
 @Test
 public void testGetSourceP2InfFile() throws IOException {
   String p2InfFile =
       PublishProductMojo.getSourceP2InfFile(new File("./test/test.product")).getCanonicalPath();
   Assert.assertEquals(new File("./test/test.p2.inf").getCanonicalPath(), p2InfFile);
 }