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_whenNoProperty() {
        Properties properties = new Properties();
        properties.setProperty("other-key", "other-value");
        Assertions.assertThatThrownBy(() -> checkRequiredProperty(properties, "some-key"))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessage("Property 'some-key' is required");
    }