public void testSecurityWithServletsUsingGet() throws Exception
{
Map<String, Object> props = new HashMap<String, Object>();
props.put(HttpConnector.HTTP_METHOD_PROPERTY, "GET");
MuleClient client = muleContext.getClient();
MuleMessage result = client.send("http://ross:ross@localhost:" + HTTP_PORT
+ "/services/mycomponent?method=echo", "test", props);
String status = result.getProperty(HttpConnector.HTTP_STATUS_PROPERTY, PropertyScope.INBOUND);
assertEquals(401, new Integer(status).intValue());