@Test void fromShouldRelyOnSerializedMailboxId() { assertThat(new MailboxIdRoutingKeyFactory().from(TestId.of(5))) .isEqualTo(RoutingKey.fromString("5")); }
@Override public RoutingKey from(MailboxId mailboxId) { return RoutingKey.fromString(mailboxId.serialize()); }
MailboxIdRoutingKeyFactory implements RoutingKey.Factory<MailboxId> { @Override public RoutingKey from(MailboxId mailboxId) { return RoutingKey.fromString(mailboxId.serialize()); } }
MailboxIdRoutingKeyFactory implements RoutingKey.Factory<MailboxId> { @Override public RoutingKey from(MailboxId mailboxId) { return RoutingKey.fromString(mailboxId.serialize()); }  }
MailboxIdRoutingKeyFactory implements RoutingKey.Factory<MailboxId> { @Override public RoutingKey from(MailboxId mailboxId) { return RoutingKey.fromString(mailboxId.serialize()); }  @Override RoutingKey from(MailboxId mailboxId); }
MailboxIdRoutingKeyFactory implements RoutingKey.Factory<MailboxId> { @Override public RoutingKey from(MailboxId mailboxId) { return RoutingKey.fromString(mailboxId.serialize()); }  @Override RoutingKey from(MailboxId mailboxId);  }