private static void assertVarEncoding(String expected, String toEncode) {
        String encoded = context.getSecretSourceResolver().encode(toEncode);
        assertThat(encoded, equalTo(expected));
    }
Test a mix of JSON and other lookups
plugin/src/test/java/io/jenkins/plugins/casc/SecretSourceResolverTest.java