@Test
public void testIsAssociated() throws Exception {

	
	Api api = new Api();
	api.setId("api1234");
	URL fileURL = getClass().getResource(DB_PATH);
	
	fileData = new FileData(fileURL.getPath());
	
	assertNotNull(fileData.checkAllowed(api, "appKey1234").getAuthIdentity());
	assertNotNull(fileData.checkAllowed(api, "user", "pass").getAuthIdentity());
	assertNotNull(fileData.checkAllowed(api, new CanonicalizedIpAddress("127.0.0.1")).getAuthIdentity());
	assertNotNull(fileData.checkAllowed(api).getAuthIdentity());
	
	api.setId("apiASDF");
	
	assertNull(fileData.checkAllowed(api, "badbad").getAuthIdentity());
	assertNull(fileData.checkAllowed(api, "bad", "bad").getAuthIdentity());
	assertNull(fileData.checkAllowed(api, new CanonicalizedIpAddress("10.0.0.1")).getAuthIdentity());
	assertNull(fileData.checkAllowed(api, "badbad", "badbad").getAuthIdentity());
	assertNull(fileData.checkAllowed(api).getAuthIdentity());
}