### Question:
RateLimiterCounterCassandraProviderImpl implements
		RateLimiterCounterProvider { public void addActiveEffect(final String key, final RateLimiterPolicyModel RateLimiterPolicyModel) { activeEffectDao.save(key, (RateLimiterPolicyModel) RateLimiterPolicyModel); } RateLimiterCounterCassandraProviderImpl(); Set<String> getActiveRLKeys(); void addActiveRL(final String key,
			final RateLimiterPolicyModel RateLimiterPolicyModel); boolean cointainKeyInActiveRL(final String key); void addActiveEffect(final String key,
			final RateLimiterPolicyModel RateLimiterPolicyModel); void removeActiveEffect(final String key); void incrementRLCounter(final String key); void setRLCounter(final String key, int i); void setRLTimestamp(final String key, final Date date); void setRLActive(final String key, boolean b); void setRLEffectDuration(final String key, final Long duration); void setRLRolloverPeriod(final String key, final Long rollover); void setRLEffect(final String key, final RateLimiterStatus effect); RateLimiterPolicyModel getActiveRL(final String key); void resetEffects();  }### Answer:
@Test public void testAddActiveEffect() throws Exception { providerImpl.addActiveEffect(effect_key, rateLimiterPolicyModel_1); Field field = RateLimiterCounterCassandraProviderImpl.class.getDeclaredField("activeEffectDao"); field.setAccessible(true); ActiveEffectDaoImpl activeEffectDaoImpl = (ActiveEffectDaoImpl) field.get(providerImpl); assertTrue(effect_key + " key must exist in effect CF ", activeEffectDaoImpl.containsKey(effect_key)); RateLimiterPolicyModel activeEffect = activeEffectDaoImpl.find(effect_key); assertNotNull("rateLimiterPolicyModel_1 element must exist for key"+ effect_key, activeEffect); assertEquals(rateLimiterPolicyModel_1.getCount(), activeEffect.getCount()); assertEquals(rateLimiterPolicyModel_1.getEffect(), activeEffect.getEffect()); assertEquals(rateLimiterPolicyModel_1.getEffectDuration(), activeEffect.getEffectDuration()); assertEquals(rateLimiterPolicyModel_1.getIp(), activeEffect.getIp()); assertEquals(rateLimiterPolicyModel_1.getRolloverPeriod(), activeEffect.getRolloverPeriod()); assertEquals(new Date(createdTime).getTime(), activeEffect.getTimestamp().getTime()); }