MethodMatcherMessageHandler implements MessageHandler { public static MethodMatcherMessageHandlerBuilder builder () { return new MethodMatcherMessageHandlerBuilder(); }  static MethodMatcherMessageHandlerBuilder builder(); @Override void handle(Mailbox self, ControlMessage header, ErlangTerm body);  }
@Test public void throwsAmbigousException () { MyService2 service = new MyService2(); val builder = MethodMatcherMessageHandler.builder() .wrap(service); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> builder.tuple(it -> it.popa2(any(), null, "popa"))) .withMessage("Ambiguous method call"); }