> + > + private static final String FAKE_SOURCE_IMAGE = > "https://www.googleapis.com/compute/v1/projects/" + > + > "debian-cloud/global/images/backports-debian-7-wheezy-v20141017"; > + > + Json json = new GsonWrapper(new Gson()); > + > + @Test > + public void testMap() throws SecurityException, NoSuchMethodException { > + DiskCreationBinder binder = new DiskCreationBinder(json); > + DiskCreationOptions diskCreationOptions = new > DiskCreationOptions().sourceImage(URI.create(FAKE_SOURCE_IMAGE)); > + > + HttpRequest request = > HttpRequest.builder().method("GET").endpoint("http://momma").build(); > + Map<String, Object> postParams = ImmutableMap.of("name", "testName", > "sizeGb", 15, "options", diskCreationOptions); > + > + HttpRequest newRequest = binder.bindToRequest(request, postParams); > + System.out.println(newRequest.getPayload().getRawContent());
Remove the `System.out` line. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/58/files#r19176426
