@Test
public void testQuotaKeys() throws Exception {

	QuotaManagerConfig config = new QuotaManagerConfig("testManager");
	List<Quota> quotas = new ArrayList<>();
	Quota quota = new Quota();
	quota.setPermits(1);
	quota.setQuotaKeyFunction("key");
	quotas.add(quota);
	
	
	QuotaManager manager = new QuotaManager(config);
	for(int i=0;i<10;i++) {
		HashMap<String, Object> bindings = new HashMap<>();
		bindings.put("key", "key"+i);
		UUID id = manager.acquirePermit(bindings);
		Assert.assertNotNull(id);
	}
}