public static URL createDPWithABundle() throws IOException, CheckingException {
    de.akquinet.gomobile.deployment.api.DeploymentPackage dp =
        new de.akquinet.gomobile.deployment.api.DeploymentPackage();

    dp.addBundle(BUNDLE1).setSymbolicName("my.first.dp").setVersion("1.0.0");

    File dpf = new File("target/dp-ownership/dp1.dp");

    dp.build(dpf);

    return dpf.toURI().toURL();
  }
  public static URL createDPWithTheSameBundle() throws Exception {
    de.akquinet.gomobile.deployment.api.DeploymentPackage dp =
        new de.akquinet.gomobile.deployment.api.DeploymentPackage();

    dp.addBundle(BUNDLE1, "bundle/b1.jar").setSymbolicName("my.first2.dp").setVersion("1.0.0");
    dp.addBundle(BUNDLE2);

    File dpf = new File("target/dp-ownership/dp2.dp");

    dp.build(dpf);

    return dpf.toURI().toURL();
  }