@Test
public void testHttpPost() throws Exception {

  final MockRestfulApiClient mockClient = new MockRestfulApiClient();
  final URI uri = MockRestfulApiClient.buildUri("test.com", 80, "test", true,
      new Pair<>("Entry1", "Value1"));
  final String content = "123456789";
  final String result = mockClient.httpPost(uri, toPairList(content));
  Assert.assertTrue(result != null && result.contains(uri.toString()));
  Assert.assertTrue(result.contains("METHOD = POST"));
  Assert.assertTrue(result.contains(String.format("%s = value=%s;", "BODY", content)));
}