### Question:
CommunityIndexCounter32Modifier implements CommunityContextModifier<Counter32> { @Override public void init(final ModifierProperties properties) { communityContextMapping = new HashMap<>(); properties.entrySet().stream().filter(property -> getUnsignedLong(property.getKey()) != -1L && getUnsignedLong(property.getValue()) != -1L).forEach(property -> communityContextMapping.put(getUnsignedLong(property.getKey()), getUnsignedLong(property.getValue()))); }  @Override void init(final ModifierProperties properties); @Override final Counter32 modify(final Counter32 variable); @Override Map<OID, Variable> getVariableBindings(final OctetString context, final OID queryOID);  }### Answer:
@Test public void testInit() { final CommunityIndexCounter32Modifier modifier = new CommunityIndexCounter32Modifier(); modifier.init(modifierProperties); final Map<Long, Long> communityIndexValues = modifier.getCommunityContextMapping(); assertEquals(communityIndexValues.size(), 2); assertTrue(communityIndexValues.containsKey(context1) && communityIndexValues.containsValue(contextValue1)); assertTrue(communityIndexValues.containsKey(context2) && communityIndexValues.containsValue(contextValue2)); modifierProperties.put("maximum", Collections.singletonMap("1.3.6", 172L)); final CommunityIndexCounter32Modifier modifier2 = new CommunityIndexCounter32Modifier(); modifier2.init(modifierProperties); final Map<Long, Long> communityIndexValues2 = modifier.getCommunityContextMapping(); assertEquals(communityIndexValues2.size(), 2); assertTrue(communityIndexValues2.containsKey(context1) && communityIndexValues2.containsValue(contextValue1)); assertTrue(communityIndexValues2.containsKey(context2) && communityIndexValues2.containsValue(contextValue2)); }