Assert.assertEquals(builder.testCase().getActions().size(), 2);
Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), SendMessageAction.class);
Assert.assertEquals(builder.testCase().getActions().get(1).getClass(), SendMessageAction.class);
SendMessageAction action = ((SendMessageAction)builder.testCase().getActions().get(0));
Assert.assertEquals(action.getName(), "send");
Assert.assertEquals(action.getEndpoint(), httpClient);
Assert.assertEquals(action.getMessageBuilder().getClass(), PayloadTemplateMessageBuilder.class);
PayloadTemplateMessageBuilder messageBuilder = (PayloadTemplateMessageBuilder) action.getMessageBuilder();
Assert.assertEquals(messageBuilder.getPayloadData(), "Foo");
Assert.assertEquals(messageBuilder.getMessageHeaders().size(), 1L);
Assert.assertEquals(messageBuilder.getMessageHeaders().get("operation"), "foo");
Assert.assertFalse(action.isForkMode());
action = ((SendMessageAction)builder.testCase().getActions().get(1));
Assert.assertEquals(action.getName(), "send");
Assert.assertEquals(action.getEndpoint(), httpClient);
Assert.assertEquals(action.getMessageBuilder().getClass(), PayloadTemplateMessageBuilder.class);
Assert.assertTrue(action.isForkMode());
}