}
@Test
public void testClientWithMuleClient() throws Exception
{
FunctionalTestComponent testComponent = getFunctionalTestComponent("testService");
assertNotNull(testComponent);
EventCallback callback = new EventCallback()
{
@Override
public void eventReceived(final MuleEventContext context, final Object component) throws Exception
{
MuleMessage msg = context.getMessage();
assertEquals("BAR", msg.getInboundProperty("FOO"));
}
};
testComponent.setEventCallback(callback);
MuleClient client = muleContext.getClient();
Map<String, Object> props = new HashMap<String, Object>();
props.put("operation", "greetMe");
props.put("FOO", "BAR");