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