public static CommonsConfigurationCircuitBreakerConfiguration of(final Configuration configuration) throws ConfigParseException{
        CommonsConfigurationCircuitBreakerConfiguration obj = new CommonsConfigurationCircuitBreakerConfiguration();
        try {
            obj.getConfigs().putAll(obj.getProperties(configuration.subset(CIRCUITBREAKER_CONFIGS_PREFIX)));
            obj.getInstances().putAll(obj.getProperties(configuration.subset(CIRCUITBREAKER_INSTANCES_PREFIX)));
            return obj;
        } catch (Exception ex) {
            throw new ConfigParseException("Error creating circuitbreaker configuration", ex);
        }
    }
@Test
    public void testFromPropertiesFile() throws ConfigurationException {
        Configuration config = CommonsConfigurationUtil.getConfiguration(PropertiesConfiguration.class, TestConstants.RESILIENCE_CONFIG_PROPERTIES_FILE_NAME);

        CommonsConfigurationCircuitBreakerConfiguration commonsConfigurationCircuitBreakerConfiguration =
                CommonsConfigurationCircuitBreakerConfiguration.of(config);

        assertConfigs(commonsConfigurationCircuitBreakerConfiguration.getConfigs());
        assertInstances(commonsConfigurationCircuitBreakerConfiguration.getInstances());
    }