List<String> uris = new ArrayList<String>();
uris.add("test-proxy-upload.cloudfoundry.com");
// Do a direct client test with the proxy settings
client = CloudFoundryPlugin.getCloudFoundryClientFactory().getCloudFoundryOperations(
new CloudCredentials(serverBehavior.getCloudFoundryServer().getUsername(), serverBehavior
.getCloudFoundryServer().getPassword()),
new URL(serverBehavior.getCloudFoundryServer().getUrl()), false);
client.createApplication("test", new Staging(), 128, uris, new ArrayList<String>());
fail("Expected ResourceAccessException due to invalid proxy configuration");
}