// 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");
}
catch (Exception e) {
assertTrue("Expected ResourceAccessException, got: " + e, e instanceof ResourceAccessException);
assertEquals("invalid.proxy.test", e.getCause().getMessage());