@Test
public void testWinHeader() {

	Exchange exchange = new DefaultExchange(context);
	exchange.setProperty(ExchangeConstantKeys.E3_REQUEST_PARAMETERS.toString(), new HashMap<String, Object>());
	
	Api api = new Api();
	api.setId("1234");
	// Setting the key in the header - should be removed
	exchange.getIn().setHeader(appHeaderName, "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 header should have been removed", exchange.getIn().getHeader(appHeaderName));
}