@Test
public void testExecutorInfoJsonParser() throws Exception {

  final ExecutorInfo exeInfo = new ExecutorInfo(99.9, 14095, 50, System.currentTimeMillis(), 89,
      10);
  final String json = JSONUtils.toJSON(exeInfo);
  when(this.client.httpPost(any(), any())).thenReturn(json);
  final ExecutorInfo exeInfo2 = this.gateway
      .callForJsonType("localhost", 1234, "executor", null, ExecutorInfo.class);
  Assert.assertTrue(exeInfo.equals(exeInfo2));
}