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

        CommonsConfigurationRetryConfiguration retryConfiguration = CommonsConfigurationRetryConfiguration.of(config);

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