  @Test
  public void testConnectNoServer() throws Exception {

    RequestManager requestManager = Mockito.mock(RequestManager.class);
    MessageMapper mapper = Mockito.mock(MessageMapper.class);

    ClientChannelInitializer channelInitializer =
        new ClientChannelInitializer(mapper, requestManager);

    ClientChannelFactory factory = new ClientChannelFactory(new
        ArrayList<ProtobufServiceTranslator>(),
        channelInitializer,
        requestManager);
    // hopefully there isn't a channel here
    ListenableFuture<RpcChannel> channel = factory.createChannel("localhost", 12345);
    try {
      Futures.get(channel, ConnectException.class);
      fail("Should not be successful");
    } catch (ConnectException e) {
      //expected
    }

    Mockito.verifyZeroInteractions(mapper, requestManager);
  }