title: Appium 1.2.2 - Desired capabilities required but not provided
body: <p>I'm trying to test my phonegap application with Appium@1.2.2 on my Nexus7@4.4.4. The app launches correctly but when I try to set the context to <code>WEBVIEW</code> Appium crashes with following error:</p>
  
  <pre><code>error: Failed to start an Appium session, err was: Error: The following desired   capabilities are required, but were not provided: platformName, deviceName
  </code></pre>
  
  <p>Ok, the message is clear but what confuses me, is that I've already set those capabilities via <code>java-client</code></p>
  
  <pre><code>[...]
      capabilities.setCapability("automationName", "Appium");
      capabilities.setCapability("platformName", "Android");
      capabilities.setCapability("platformVersion", "4.4");
      capabilities.setCapability("deviceName", "Nexus 7");
      capabilities.setCapability("appPackage", "my.app.package");
  
      driver = new AppiumDriver(new URL("http://127.0.0.1:9515/wd/hub"), capabilities);
  
  [...]
  </code></pre>
  
  <p>Any ideas ?</p>