### Question:
RateLimiterCounterMapProviderImpl implements
		RateLimiterCounterProvider { public void addActiveRL(final String key, final RateLimiterPolicyModel rateLimiterPolicyModel) { getActiveRLMap().put(key, rateLimiterPolicyModel); }  boolean cointainKeyInActiveRL(final String key); void addActiveRL(final String key,
			final RateLimiterPolicyModel rateLimiterPolicyModel); void addActiveEffect(final String key,
			final RateLimiterPolicyModel rateLimiterPolicyModel); void removeActiveEffect(final String key); RateLimiterPolicyModel getActiveRL(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 setRLEffect(final String key, final RateLimiterStatus effect); void setRLRolloverPeriod(final String key, final Long rollover); void resetEffects(); Set<String> getActiveRLKeys();  }### Answer:
@Test public void testAddActiveRL() { providerImpl.addActiveRL(rl_key, rateLimiterPolicyModel_1); try { @SuppressWarnings("unchecked") Map<String, RateLimiterPolicyModel> activeRLMap = (Map<String, RateLimiterPolicyModel>) getActiveRLMapMethod .invoke(providerImpl, null); assertNotNull("activeRLMap should contain one element", activeRLMap); assertFalse("activeRLMap should contain one element", activeRLMap.isEmpty()); assertNotNull("rateLimiterPolicyModel_1 element must exist for key"+ rl_key, activeRLMap.get(rl_key)); assertEquals(rateLimiterPolicyModel_1.getCount(), activeRLMap.get(rl_key).getCount()); assertEquals(rateLimiterPolicyModel_1.getEffect(), activeRLMap.get(rl_key).getEffect()); assertEquals(rateLimiterPolicyModel_1.getEffectDuration(), activeRLMap.get(rl_key).getEffectDuration()); assertEquals(rateLimiterPolicyModel_1.getIp(), activeRLMap.get(rl_key) .getIp()); assertEquals(rateLimiterPolicyModel_1.getRolloverPeriod(), activeRLMap.get(rl_key).getRolloverPeriod()); assertEquals(new Date(createdTime).getTime(), activeRLMap.get(rl_key).getTimestamp().getTime()); } catch (Exception e) { fail(e.getMessage()); } }