Invokable<?, ?> method = method(TestNetworkConfig.class, "withAll", VirtualMachineDto.class, VLANNetworkDto.class);
GeneratedHttpRequest request = GeneratedHttpRequest.builder()
.invocation(Invocation.create(method, ImmutableList.<Object> of(vm, network))).method(HttpMethod.GET)
.endpoint(URI.create("http://localhost")).build();
BindNetworkConfigurationRefToPayload binder = new BindNetworkConfigurationRefToPayload(new JAXBParser("false"));
String configLink = vm.searchLink("configurations").getHref() + "/" + network.getId();
GeneratedHttpRequest newRequest = binder.bindToRequest(request, network);
assertPayloadEquals(newRequest.getPayload(), withHeader("<links><link href=\"" + configLink