@Test
    public void resolve_BinaryFileBase64() throws Exception {
        Path path = getPath("secret.json");
        String pathStr = path.toAbsolutePath().toString();
        environment.set("FOO", pathStr);
        byte[] bytes = Files.readAllBytes(path);
        String expected = Base64.getEncoder().encodeToString(bytes);
        byte[] expectedBytes = Base64.getDecoder().decode(expected);
        String actual = resolve("${fileBase64:${FOO}}");
        byte[] actualBytes = Base64.getDecoder().decode(actual);
        String lookup = BINARYFILE.lookup(pathStr);
        assertThat(lookup, equalTo(expected));
        assertThat(actual, equalTo(expected));
        assertThat(actualBytes, equalTo(expectedBytes));
    }
Ensures that prefixes in the secret ID which are not covered by the CasC protocol substitutors (e.g. base64:, file:)
are left untouched and not removed.
plugin/src/test/java/io/jenkins/plugins/casc/SecretSourceResolverTest.java