CangoClient { public CangoResponseDto request(RequestCommand command, CangoRequestDto requestDto) throws IOException, IllegalAccessException { String uri = buildUri(command); HttpPost httpPost = buildHttpPost(uri, requestDto); return parseResponse(httpPost); } CangoClient(String host, int port, String appName); CangoResponseDto request(RequestCommand command, CangoRequestDto requestDto);  }
@Test public void testAdd() throws IOException, IllegalAccessException { CangoRequestDto cangoRequestDto = new CangoRequestDto(); cangoRequestDto.setHost("192.168.0.113"); final CangoResponseDto responseDto = cangoClient.request(RequestCommand.ADD, cangoRequestDto); Assert.assertEquals(CangoRspStatus.FAILURE, responseDto.getStatus()); }