public static String checkRequiredProperty(Properties properties, String key) {
        if (properties == null) {
            throw new IllegalArgumentException("Properties are required");
        }
        String value = properties.getProperty(key);
        return checkHasText(value, "Property '" + key + "' is required");
    }
@Test
    public void test_checkRequiredProperty_when_null() {
        Assertions.assertThatThrownBy(() -> checkRequiredProperty(null, "some-key"))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessage("Properties are required");
    }