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_whenProperty() {
        Properties properties = new Properties();
        properties.setProperty("some-key", "some-value");

        assertThat(checkRequiredProperty(properties, "some-key")).isEqualTo("some-value");
    }