### Question:
CredentialViewConverter { public CredentialViewResponse convert(CredentialView credentialView) { CredentialViewResponse response = new CredentialViewResponse(); response.setName(credentialView.getName()); response.setCloudPlatform(credentialView.getCloudPlatform()); response.setCreator(credentialView.getCreator()); response.setCrn(credentialView.getResourceCrn()); response.setDescription(credentialView.getDescription()); response.setVerificationStatusText(credentialView.getVerificationStatusText()); response.setType(credentialView.getType()); return response; }  CredentialViewResponse convert(CredentialView credentialView); CredentialView convert(Credential credential);  }### Answer:
@Test public void testConvertCredentialView() { CredentialView credentialView = new CredentialView(); credentialView.setName(CRED_NAME); credentialView.setCloudPlatform(CLOUD_PLATFORM); credentialView.setCreator(CREATOR); credentialView.setResourceCrn(CRN); credentialView.setDescription(DESCRIPTION); credentialView.setVerificationStatusText(VERIFICATION_STATUS_TEXT); CredentialViewResponse result = underTest.convert(credentialView); assertEquals(CRED_NAME, result.getName()); assertEquals(CLOUD_PLATFORM, result.getCloudPlatform()); assertEquals(CREATOR, result.getCreator()); assertEquals(CRN, result.getCrn()); assertEquals(DESCRIPTION, result.getDescription()); assertEquals(VERIFICATION_STATUS_TEXT, result.getVerificationStatusText()); }
@Test public void testConvertCredential() { Credential credential = new Credential(); credential.setName(CRED_NAME); credential.setCloudPlatform(CLOUD_PLATFORM); credential.setCreator(CREATOR); credential.setResourceCrn(CRN); credential.setDescription(DESCRIPTION); credential.setVerificationStatusText(VERIFICATION_STATUS_TEXT); CredentialView result = underTest.convert(credential); assertEquals(CRED_NAME, result.getName()); assertEquals(CLOUD_PLATFORM, result.getCloudPlatform()); assertEquals(CREATOR, result.getCreator()); assertEquals(CRN, result.getResourceCrn()); assertEquals(DESCRIPTION, result.getDescription()); assertEquals(VERIFICATION_STATUS_TEXT, result.getVerificationStatusText()); }