PropertyManager { String envVarName(String propertyKey) { var builder = new StringBuilder(); int length = propertyKey.length(); for (int i = 0; i < length; i++) { char ch = propertyKey.charAt(i); if (ch == '.') builder.append('_'); else builder.append(ASCII.toUpperCase(ch)); } return builder.toString(); }  Optional<String> property(String key); String maskValue(String key, String value); final Properties properties; }
@Test void envVarName() { assertThat(propertyManager.envVarName("sys.kafka.uri")).isEqualTo("SYS_KAFKA_URI"); }