CloudAppConfigurationService { public void add(final CloudAppConfigurationPOJO appConfig) { regCenter.persist(CloudAppConfigurationNode.getRootNodePath(appConfig.getAppName()), YamlEngine.marshal(appConfig)); }  void add(final CloudAppConfigurationPOJO appConfig); void update(final CloudAppConfigurationPOJO appConfig); Optional<CloudAppConfigurationPOJO> load(final String appName); Collection<CloudAppConfigurationPOJO> loadAll(); void remove(final String appName);  }
@Test public void assertAdd() { CloudAppConfigurationPOJO appConfig = CloudAppConfigurationBuilder.createCloudAppConfiguration("test_app"); configService.add(appConfig); verify(regCenter).persist("/config/app/test_app", YAML); }