@Test
public void testFailNotAllowed(){

	Exchange exchange = new DefaultExchange(context);
	Api api = new Api();
	api.setId("1234");
	// 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);
	
	AppKeyExecutor executor = new AppKeyExecutor(appKeyName, appHeaderName, new MockAuthDataAccess(null, null, null));
	AuthReport authReport = executor.checkAllowed(exchange, api);
	
	assertNull("This authentication should have failed", authReport.getAuthIdentity());
}