@Test
public void shouldGetForbiddenForBadCredentialIdOnCreate2() throws IOException, UnirestException {

    User user = login();
    this.jwtToken = getJwtToken(j.jenkins, user.getId(), user.getId());
    Map resp = createCredentials(user, ImmutableMap.of("credentials", new ImmutableMap.Builder<String,Object>()
            .put("password", "abcd")
            .put("stapler-class", "com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl")
            .put("scope", "USER")
            .put("domain","blueocean-git-domain")
            .put("description", "joe desc")
            .put("$class", "com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl")
            .put("username", "joe").build()
    ));
    String credentialId = (String) resp.get("id");
    Assert.assertNotNull(credentialId);
    post("/organizations/" + getOrgName() + "/pipelines/",
            ImmutableMap.of("name", "demo",
                    "$class", "io.jenkins.blueocean.blueocean_git_pipeline.GitPipelineCreateRequest",
                    "scmConfig", ImmutableMap.of("uri", "git@github.com:vivek/capability-annotation.git",
                            "credentialId", credentialId)
            ), 400);
}