### Question:
ForwardingNameResolver extends NameResolver { @Override public String getServiceAuthority() { return delegate.getServiceAuthority(); } ForwardingNameResolver(NameResolver delegate); @Override String getServiceAuthority(); @Override void start(Listener listener); @Override void shutdown(); @Override void refresh(); @Override String toString();  }### Answer:
@Test public void getServiceAuthority() { String auth = "example.com"; when(delegate.getServiceAuthority()).thenReturn(auth); assertEquals(auth, forwarder.getServiceAuthority()); }