@Test void fromShouldRelyOnUsername() { assertThat(new UserRoutingKeyFactory().from(Username.of("bob"))) .isEqualTo(RoutingKey.fromString("bob")); }
@Override public RoutingKey from(Username user) { return RoutingKey.fromString(user.asString()); }
UserRoutingKeyFactory implements RoutingKey.Factory<Username> { @Override public RoutingKey from(Username user) { return RoutingKey.fromString(user.asString()); } }
UserRoutingKeyFactory implements RoutingKey.Factory<Username> { @Override public RoutingKey from(Username user) { return RoutingKey.fromString(user.asString()); }  }
UserRoutingKeyFactory implements RoutingKey.Factory<Username> { @Override public RoutingKey from(Username user) { return RoutingKey.fromString(user.asString()); }  @Override RoutingKey from(Username user); }
UserRoutingKeyFactory implements RoutingKey.Factory<Username> { @Override public RoutingKey from(Username user) { return RoutingKey.fromString(user.asString()); }  @Override RoutingKey from(Username user);  }