@Test
public void test () throws Exception {

  ExecutorService executorService = Executors.newSingleThreadExecutor();
  executorService.execute(() -> Main.main(null));
  SECONDS.sleep(2);
  try (Node node = Nodes.singleNode("test@localhost", true)) {
    Mailbox mailbox = node.mailbox()
        .build();
    mailbox.send("java@localhost", "my_process", tuple(mailbox.getPid(), atom("popa")));
    ErlangTerm payload = mailbox.receive(20, SECONDS).getBody();
    assertThat(payload.asText()).isEqualTo("hello world");
  }
}