@Test
public void link () throws Exception {

  val name = createName();
  node = Nodes.singleNode(name, true);
  Mailbox mailbox1 = node.mailbox().build();
  Mailbox mailbox2 = node.mailbox().build();
  mailbox1.link(mailbox2.getPid());
  SECONDS.sleep(1);
  mailbox2.unlink(mailbox1.getPid());
  SECONDS.sleep(1);
  mailbox1.exit("popa");
  try {
    mailbox2.receive();
  } catch (ReceivedExitException ex) {
    assertThat(ex.getFrom())
        .isEqualTo(mailbox1.getPid());
    assertThat(ex.getReason())
        .isEqualTo(new ErlangAtom("popa"));
    return;
  }
  assertThat(false).isTrue();
}