doThrow(new UnauthorisedException(null, (MuleEvent) null)).when(manager).authenticate(
(Authentication) anyObject());
try
{
filter.authenticateInbound(event);
fail("An UnauthorisedException should be thrown");
}
catch (UnauthorisedException e)
{
assertNotNull(event.getMessage().getProperty("WWW-Authenticate"));