String appName = namespacedAppName("standalone-ruby");
List<String> uris = new ArrayList<String>();
List<String> services = new ArrayList<String>();
createStandaloneRubyTestApp(appName, uris, services);
connectedClient.startApplication(appName);
CloudApplication app = connectedClient.getApplication(appName);
assertNotNull(app);
assertEquals(CloudApplication.AppState.STARTED, app.getState());
assertEquals(uris, app.getUris());
assertEquals("ruby simple.rb", app.getStaging().getCommand());
connectedClient.stopApplication(appName);
Staging newStaging = new Staging("ruby simple.rb test", "https://github.com/cloudfoundry/heroku-buildpack-ruby");
connectedClient.updateApplicationStaging(appName, newStaging);
app = connectedClient.getApplication(appName);
assertNotNull(app);
assertEquals(uris, app.getUris());
assertEquals("ruby simple.rb test", app.getStaging().getCommand());
assertEquals("https://github.com/cloudfoundry/heroku-buildpack-ruby", app.getStaging().getBuildpackUrl());
}