### Question:
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);  }### Answer:
@Test void testCredentialVerificationCredentialNotChanged() { when(cloudCredentialStatus.getCloudCredential()).thenReturn(convertedCredential); when(cloudCredentialStatus.getStatus()).thenReturn(CredentialStatus.VERIFIED); CredentialVerification verification = underTest.verify(credential, ACCOUNT_ID); assertFalse(verification.isChanged()); }
@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()); }