protected SCM createSCMMock(String url){
SCM mockedSCM = spy(SCM.valueOf(getSCMClass().getName()));
if(scmUnderTest.useCredentials()){
SCMCredentialConfiguration mockedCredential = new SCMCredentialConfiguration("toto");
PowerMockito.doReturn(mockedCredential).when(mockedSCM).extractScmCredentials((String)Mockito.notNull());
}
scmContext = new ScmContext(mockedSCM, url);
ScmSyncConfigurationPOJO config = new DefaultSSCPOJO();