public static String[] getArrayPropDefault(String propName, String[] defaultVal) {
        try {
            String strVal = appProperties.getProperty(propName);
            if (StringUtils.isNotBlank(strVal)) {
                return strVal.trim().split("\\s+");
            }
        } catch (Exception e) {
            log.warn("Exception '{}' occurred when fetching Array property:'{}', defaulting to: {}",
                    e.getMessage(), propName, defaultVal != null ? Arrays.toString(defaultVal) : null);
        }
        return defaultVal;
    }
@Test
    public void testGetArrayPropDefault() throws Exception {
        Path props = Files.createTempFile("testGetArrayPropDefault", ".properties");
        JMeterUtils.loadJMeterProperties(props.toString());
        JMeterUtils.getJMeterProperties().setProperty("testGetArrayPropDefaultEmpty", "    ");
        JMeterUtils.getJMeterProperties().setProperty("testGetArrayPropDefault",
                " Tolstoi  Dostoievski    Pouchkine       Gorki ");
        assertArrayEquals(new String[]{"Tolstoi", "Dostoievski", "Pouchkine", "Gorki"},
                JMeterUtils.getArrayPropDefault("testGetArrayPropDefault", null));
        assertArrayEquals(new String[]{"Gilels", "Richter"},
                JMeterUtils.getArrayPropDefault("testGetArrayPropDefaultMissing",
                        new String[]{"Gilels", "Richter"}));
        assertArrayEquals(null,
                JMeterUtils.getArrayPropDefault("testGetArrayPropDefaultEmpty", null));
    }