@Test
    void verifyOperation() throws Throwable {
        val properties = new Properties();
        properties.load(new ClassPathResource("testconfig.properties").getInputStream());
        val tempFile = Files.createTempFile("casconfig", ".properties");
        properties.store(new FileWriter(tempFile.toFile(), StandardCharsets.UTF_8), "CAS Configuration");
        assertDoesNotThrow(() -> runShellCommand(() -> () -> "convert-props --properties " + tempFile.toFile().getAbsolutePath()));
        assertTrue(Files.exists(tempFile.getParent().resolve(FilenameUtils.getBaseName(tempFile.toFile().getName()) + ".yml")));
    }
This is {@link ConvertPropertiesToYAMLCommandTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-shell/src/test/java/org/apereo/cas/shell/commands/properties/ConvertPropertiesToYAMLCommandTests.java