CloudCredentialsServiceImpl implements ICloudCredentialsService { @Override public CloudCredentialsDTO saveCloudCredentials(CloudCredentialsDTO cloudCredentialsDTO) { CloudCredentials cloudCredentials = transformer .cloudCredentialsDTOToEntity(cloudCredentialsDTO); return transformer.cloudCredentialsEntityToDTO(repository.save(cloudCredentials)); } CloudCredentialsServiceImpl(); @Override CloudCredentialsDTO saveCloudCredentials(CloudCredentialsDTO cloudCredentialsDTO); @Override CloudCredentialsDTO getCloudCredentials();  }
@Test public void saveCloudCredentials() { CloudCredentialsDTO cloudCredentialsDTO = new CloudCredentialsDTO(); UUID uuid = UUID.randomUUID(); cloudCredentialsDTO.setUuid(uuid.toString()); CloudCredentialsDTO savedCloudCredentials = cloudCredentialsService.saveCloudCredentials(cloudCredentialsDTO); Assert.assertNotNull(savedCloudCredentials); Assert.assertEquals(cloudCredentialsDTO.getUuid(), savedCloudCredentials.getUuid()); }