public void testAuthenticationAuthorisedHttp() throws Exception { MuleClient client = new MuleClient(); Map props = new HashMap(); UMOEncryptionStrategy strategy = MuleManager.getInstance().getSecurityManager().getEncryptionStrategy("PBE"); String header = MuleCredentials.createHeader("anon", "anon", "PBE", strategy); props.put(MuleProperties.MULE_USER_PROPERTY, header); UMOMessage m = client.send("http://localhost:4567/index.html", "", props); assertNotNull(m); int status = m.getIntProperty(HttpConnector.HTTP_STATUS_PROPERTY, -1); assertEquals(HttpConstants.SC_OK, status); }