Assert.assertEquals(stringArray.get(0), "message1");
Assert.assertEquals(stringArray.get(1), "message2");
//Enum array
ToneArray inputTonesArray = new ToneArray();
inputTonesArray.add(Tone.SINCERE);
inputTonesArray.add(Tone.FRIENDLY);
Request<ToneArray> toneArrayRequest =
builders.<ToneArray>action("EchoToneArray").setActionParam("Tones", inputTonesArray).build();
ToneArray tones = REST_CLIENT.sendRequest(toneArrayRequest).getResponse().getEntity();
Assert.assertEquals(tones.get(0), Tone.SINCERE);
Assert.assertEquals(tones.get(1), Tone.FRIENDLY);
}