HttpRequest request = HttpRequest.builder().method("POST").endpoint(URI.create("http://localhost")).build();
binder.bindToRequest(request, new Object());
}
public void testBindOnlyName() throws IOException {
HttpRequest request = HttpRequest.builder().method("POST").endpoint(URI.create("http://localhost")).build();
HttpRequest newRequest = binder.bindToRequest(request, Group.builder("foo").build());
String payload = Strings2.toStringAndClose(newRequest.getPayload().getInput());
assertEquals(payload, "{\"groupname\":\"foo\",\"actors\":{\"clients\":[],\"groups\":[],\"users\":[]}}");
}