@Test
public void testAuthority() throws IOException {

  ManagedChannel sub1 = Mockito.mock(ManagedChannel.class);
  ManagedChannel sub2 = Mockito.mock(ManagedChannel.class);
  Mockito.when(sub1.authority()).thenReturn("myAuth");
  ChannelPool pool = ChannelPool.create(2, new FakeChannelFactory(Arrays.asList(sub1, sub2)));
  Truth.assertThat(pool.authority()).isEqualTo("myAuth");
}