EtcdRepository implements ConfigurationRepository, RegistryRepository { @Override public void delete(final String key) { client.getKVClient().delete(ByteSequence.from(key, Charsets.UTF_8)); }  @Override void init(final String name, final GovernanceCenterConfiguration config); @SneakyThrows({InterruptedException.class, ExecutionException.class}) @Override String get(final String key); @SneakyThrows({InterruptedException.class, ExecutionException.class}) @Override List<String> getChildrenKeys(final String key); @SneakyThrows({InterruptedException.class, ExecutionException.class}) @Override void persist(final String key, final String value); @SneakyThrows({InterruptedException.class, ExecutionException.class}) @Override void persistEphemeral(final String key, final String value); @Override void delete(final String key); @Override void watch(final String key, final DataChangedEventListener dataChangedEventListener); @Override void close(); @Override String getType();  }
@Test public void assertDelete() { repository.delete("key"); verify(kv).delete(ByteSequence.from("key", Charsets.UTF_8)); }