@Activate
    public void activate(ComponentContext context) {
        factoryMap = Maps.newHashMap();
        factoryMap.put(SnmpConstants.version2c, new SnmpSessionFactory(
                new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())));
        factoryMap.put(SnmpConstants.version3, new SnmpSessionFactory(
                new DefaultSnmpConfigurationFactory(new V3SnmpConfiguration())));
        log.info("Started");
    }
@Test
    public void testActivate() {
        snmpController.activate(null);
        assertTrue("Snmp session factory map should contain atleast one factory object",
                snmpController.factoryMap.size() > 0);
    }