### Question:
CloudJobConfigurationService { public void add(final CloudJobConfiguration jobConfig) { regCenter.persist(CloudJobConfigurationNode.getRootNodePath(jobConfig.getJobName()), CloudJobConfigurationGsonFactory.toJson(jobConfig)); }  void add(final CloudJobConfiguration jobConfig); void update(final CloudJobConfiguration jobConfig); Collection<CloudJobConfiguration> loadAll(); Optional<CloudJobConfiguration> load(final String jobName); void remove(final String jobName);  }### Answer:
@Test public void assertAdd() { CloudJobConfiguration jobConfig = CloudJobConfigurationBuilder.createCloudJobConfiguration("test_job"); configService.add(jobConfig); Mockito.verify(regCenter).persist("/config/job/test_job", CloudJsonConstants.getJobJson()); }
@Test public void assertAddSpringJob() { CloudJobConfiguration jobConfig = CloudJobConfigurationBuilder.createCloudSpringJobConfiguration("test_spring_job"); configService.add(jobConfig); Mockito.verify(regCenter).persist("/config/job/test_spring_job", CloudJsonConstants.getSpringJobJson()); }