def METHOD_NAME(self, a):
    net = a.network()
    agent1 = a.replicator(network=net)
    agent2 = a.replicator(network=net)
    agent1.connect(direction="to", whom=agent2)
    a.meme(origin=agent1, contents="foo")
    a.gene(origin=agent1, contents="bar")
    assert len(agent1.infos(type=Gene)) == 1
    assert len(agent1.infos(type=Meme)) == 1
    assert len(agent2.infos(type=Gene)) == 0
    assert len(agent2.infos(type=Meme)) == 0
    # Transmit from agent 1 to 2.
    agent1.transmit(to_whom=agent2)
    # Receive the transmission.
    agent2.receive()
    # Make sure that Agent 2 has a blank memome and the right gene.
    assert "foo" == agent2.infos(type=Meme)[0].contents
    assert "bar" == agent2.infos(type=Gene)[0].contents