return "org/mule/test/integration/security/custom-security-filter-test.xml";
}
public void testOutboundAutenticationSend() throws Exception
{
DefaultLocalMuleClient client = new DefaultLocalMuleClient(muleContext);
HashMap<String, Object> props = new HashMap<String,Object>();
props.put("username", "ross");
props.put("pass", "ross");
MuleMessage result = client.send("vm://test", "hi", props);
assertNull(result.getExceptionPayload());
props.put("pass", "badpass");
try
{
client.send("vm://test", "hi", props);
fail("Exception expected");
}
catch (Exception e)
{
// expected