public String[] getArray(@NotNull final String key) {
        final String string = getString(key);
        if (string != null) {
            if (string.charAt(0) == '{' || string.charAt(0) == '[') {
                try {
                    return objectMapper.readValue(string, String[].class);
                } catch (JsonProcessingException e) {
                    throw new IllegalStateException("Unable to read value '" + string + "' as an array");
                }
            } else {
                return string.split(ARRAY_SEP);
            }
        }
        return null;
    }
@Test
    public void testGetArrayWhereThePropertyIsNotSet() {
        // WHEN getting the array
        final String[] array = getSettings().getArray("key");

        // THEN null is returned
        assertThat("Expected the array to be null", array, nullValue());
    }