Code example for ImmutableMap.Builder

Methods: build, put

0
      GeneratedHttpRequest request = requestForArgs(ImmutableList.<Object> of());
 
      BindCloneVAppParamsToXmlPayload binder = injector.getInstance(BindCloneVAppParamsToXmlPayload.class);
 
      Builder<String, Object> map = ImmutableMap.builder();
      map.put("name", "my-vapp"); 
      map.put("Source", "https://vcenterprise.bluelock.com/api/v1.0/vapp/4181"); 
      assertEquals(binder.bindToRequest(request, map.build()).getPayload().getRawContent(), expected);
   } 
}