@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
public void testArrayTypesOnActions(RootBuilderWrapper<?, ?> builders) throws RemoteInvocationException
{
//Record template array
MessageArray inputMessageArray = new MessageArray();
inputMessageArray.add(new Message().setId("My Message Id").setMessage("My Message"));
inputMessageArray.add(new Message().setId("My Message Id 2").setMessage("My Message 2"));
Request<MessageArray> messageArrayRequest =
builders.<MessageArray>action("EchoMessageArray").setActionParam("Messages", inputMessageArray).build();
MessageArray messageArray = REST_CLIENT.sendRequest(messageArrayRequest).getResponse().getEntity();
Assert.assertEquals(messageArray.get(0).getId(), "My Message Id");
Assert.assertEquals(messageArray.get(0).getMessage(), "My Message");
Assert.assertEquals(messageArray.get(1).getId(), "My Message Id 2");
Assert.assertEquals(messageArray.get(1).getMessage(), "My Message 2");
//Primitive type array
StringArray inputStringArray = new StringArray();
inputStringArray.add("message1");
inputStringArray.add("message2");