headers.put("Content-Type", "application/json");
}
@Test
public void testSetFieldsParameterRpc() throws RequestException, IOException {
Provider provider = new ShindigProvider();
Client client = new Client(provider, authScheme, httpClient);
Request request = new Request("/service/", "service.test", "GET");
String fieldsString = "\"fields\":[\"field1\",\"field2\"]";
String url = removeTrailingSlash(provider.getRpcEndpoint());
expect(authScheme.getHttpMessage(
eq(provider), eq("POST"), eq(url), eq(headers),
EasyMock.cmp(fieldsString.getBytes(),
new BodyContainsComparator(), LogicalOperator.EQUAL))).andReturn(