@Test
public void testWin() {

	Exchange exchange = new DefaultExchange(context);
	
	Api api = new Api();
	
	// Setting the key in the request parameters
	Map<String, Object> parameters = new HashMap<String, Object>();
	parameters.put(appKeyName, "asdf");
	exchange.setProperty(ExchangeConstantKeys.E3_REQUEST_PARAMETERS.toString(), parameters);
	// Setting the key in the query - should be removed
	exchange.getIn().setHeader(Exchange.HTTP_QUERY, appKeyName + "=asdf");
	
	AppKeyExecutor executor = new AppKeyExecutor(appKeyName, appHeaderName, new MockAuthDataAccess("asdf", null, null));
	
	AuthReport authReport = executor.checkAllowed(exchange, api);
	
	assertNotNull("This authentication should have succeeded", authReport.getAuthIdentity());
	// Check the query parameter
	assertNull("The query parameter should have been removed", exchange.getIn().getHeader(Exchange.HTTP_QUERY));
}