  @Test public void defaultFactory() throws Exception
  {

    Transport.Factory factory = Transport.defaultFactory();
    Responder south = new DefaultResponder()
    {
      @Override public Response first(String state, Decoder.Pager p,
        Decoder.Parameters ps, Transport.Target t)
      {
        return DefaultResponse.fromData(
          merge(new HashMap<>(), Bank.bankId, "bank-x"));
      }
    };
    Receiver receiver = new ReceiverNov2016(south, factory.codecs());
    Sender sender = receiver::respond;
    Connector connector = factory.connector(sender);

    Decoder.Response response = connector.get("test", Transport.Target.bank,
      null);

    assertTrue(response.data().iterator().hasNext());
  }