### Question:
CloudAppConfigurationService { public void add(final CloudAppConfiguration appConfig) { regCenter.persist(CloudAppConfigurationNode.getRootNodePath(appConfig.getAppName()), CloudAppConfigurationGsonFactory.toJson(appConfig)); }  void add(final CloudAppConfiguration appConfig); void update(final CloudAppConfiguration appConfig); Optional<CloudAppConfiguration> load(final String appName); Collection<CloudAppConfiguration> loadAll(); void remove(final String appName);  }### Answer:
@Test public void assertAdd() { CloudAppConfiguration appConfig = CloudAppConfigurationBuilder.createCloudAppConfiguration("test_app"); configService.add(appConfig); Mockito.verify(regCenter).persist("/config/app/test_app", CloudAppJsonConstants.getAppJson("test_app")); }