NacosRepository implements ConfigurationRepository { @Override public void delete(final String key) { try { String dataId = pathToKey(key); configService.removeConfig(dataId, nacosProperties.getValue(NacosPropertyKey.GROUP)); } catch (final NacosException ex) { log.debug("Nacos remove config exception for: {}", ex.toString()); } }  @Override void init(final String name, final GovernanceCenterConfiguration config); @Override String get(final String key); @Override List<String> getChildrenKeys(final String key); @Override void persist(final String key, final String value); @Override void watch(final String key, final DataChangedEventListener listener); @Override void delete(final String key); @Override void close(); @Override String getType();  }
@Test public void assertDelete() throws NacosException { REPOSITORY.delete("/sharding/test"); verify(configService).removeConfig("sharding.test", group); }