@NonNull
    @Override
    public String getId() {
        return ID;
    }
@Test
    public void getRepositoriesWithCredentialId() throws IOException, UnirestException {
        String credentialId = createCredential(BitbucketCloudScm.ID);
        Map repoResp = new RequestBuilder(baseUrl)
                .crumb(crumb)
                .status(200)
                .jwtToken(getJwtToken(j.jenkins, authenticatedUser.getId(), authenticatedUser.getId()))
                .post("/organizations/jenkins/scm/"+BitbucketCloudScm.ID+"/organizations/" + BbCloudWireMock.TEAM_UUID + "/repositories/"+getApiUrlParam()+"&credentialId="+credentialId)
                .build(Map.class);
        List repos = (List) ((Map)repoResp.get("repositories")).get("items");
        assertEquals("pipeline-demo-test", ((Map)repos.get(0)).get("name"));
        assertEquals("pipeline-demo-test", ((Map)repos.get(0)).get("description"));
        assertTrue((Boolean) ((Map)repos.get(0)).get("private"));
        assertEquals("master",((Map)repos.get(0)).get("defaultBranch"));

        assertEquals(2, repos.size());
        assertEquals("emptyrepo", ((Map)repos.get(1)).get("name"));
        assertEquals("emptyrepo", ((Map)repos.get(1)).get("description"));
        assertTrue((Boolean) ((Map)repos.get(1)).get("private"));
        assertNull(((Map)repos.get(1)).get("defaultBranch"));
    }