@Test
public void shouldNotProvideIdForMissingCredentials() throws Exception {

    User user = login();
    String scmPath = "/organizations/" + getOrgName() + "/scm/git/";
    String repoPath = scmPath + "?repositoryUrl=" + HTTPS_GITHUB_PUBLIC;
    Map resp = new RequestBuilder(baseUrl)
        .status(200)
        .jwtToken(getJwtToken(j.jenkins,user.getId(), user.getId()))
        .crumb( crumb )
        .get(repoPath)
        .build(Map.class);
    assertEquals(null, resp.get("credentialId"));
}