CachingClientTable implements ClientTable<E> { @Override public String getName() { return delegate.getName(); } CachingClientTable(DatabaseAccessor accessor, Function<String, ? extends ClientOperation<E>> operationMap, Function<E, String> idGetter);   CachingClientTable(ClientTable<E> delegate, Function<String, ? extends ClientOperation<E>> operationMap, Function<? super E, String> idGetter); @Override String getName(); @Override Stream<E> findAll(); @Override E findById(String id); @Override synchronized Event append(String user, String operation, String objectId, String data);  }
@Test @DisplayName("Gets name from delegate") void testGetName() { when(delegate.getName()).thenReturn("my.group"); assertThat(table.getName()).isEqualTo("my.group"); }