@Test void testCredentialVerificationPermissionMissing() { when(cloudCredentialStatus.getCloudCredential()).thenReturn(convertedCredential); when(cloudCredentialStatus.getStatus()).thenReturn(CredentialStatus.PERMISSIONS_MISSING); when(cloudCredentialStatus.getStatusReason()).thenReturn(CredentialStatus.PERMISSIONS_MISSING.name()); CredentialVerification verification = underTest.verify(credential, ACCOUNT_ID); assertTrue(verification.isChanged()); }
public CredentialVerification verify(Credential credential, String accountId) { return verify(credential, accountId, Boolean.FALSE); }
ServiceProviderCredentialAdapter { public CredentialVerification verify(Credential credential, String accountId) { return verify(credential, accountId, Boolean.FALSE); } }
ServiceProviderCredentialAdapter { public CredentialVerification verify(Credential credential, String accountId) { return verify(credential, accountId, Boolean.FALSE); }  }
ServiceProviderCredentialAdapter { public CredentialVerification verify(Credential credential, String accountId) { return verify(credential, accountId, Boolean.FALSE); }  CredentialVerification verify(Credential credential, String accountId); CredentialVerification verify(Credential credential, String accountId, boolean creationVerification); Map<String, String> interactiveLogin(Credential credential, String accountId, String userId); Credential update(Credential credential); Credential initCodeGrantFlow(Credential credential, String accountId, String userId); }
ServiceProviderCredentialAdapter { public CredentialVerification verify(Credential credential, String accountId) { return verify(credential, accountId, Boolean.FALSE); }  CredentialVerification verify(Credential credential, String accountId); CredentialVerification verify(Credential credential, String accountId, boolean creationVerification); Map<String, String> interactiveLogin(Credential credential, String accountId, String userId); Credential update(Credential credential); Credential initCodeGrantFlow(Credential credential, String accountId, String userId);  }