RoutingKey { public static RoutingKey fromString(String value) { return new RoutingKey(value); } private  RoutingKey(String value); static RoutingKey fromString(String value); String asString(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void fromStringShouldThrowWhenNull() { assertThatThrownBy(() -> RoutingKey.fromString(null)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fromStringShouldThrowWhenEmpty() { assertThatThrownBy(() -> RoutingKey.fromString("")) .isInstanceOf(IllegalArgumentException.class); }