@Test
    @ConfiguredWithCode("SSHCredentialsTest_Multiline_Key.yml")
    @Issue("https://github.com/jenkinsci/configuration-as-code-plugin/issues/1189")
    void shouldSupportMultilineCertificates(JenkinsConfiguredWithCodeRule j) {
        BasicSSHUserPrivateKey certKey = getCredentials(BasicSSHUserPrivateKey.class);
        assertThat(
                "Private key roundtrip failed",
                certKey.getPrivateKey().trim(),
                equalTo(MySSHKeySecretSource.PRIVATE_SSH_KEY.trim()));
    }
Integration tests for the SSH Credentials Plugin.
integrations/src/test/java/io/jenkins/plugins/casc/SSHCredentialsTest.java