Routed { @SuppressWarnings("unchecked") public static <T> Routed<T> empty() { return (Routed<T>) EMPTY; } private  Routed(@Nullable Route route, RoutingResult routingResult, @Nullable T value); @SuppressWarnings("unchecked") static Routed<T> empty(); boolean isPresent(); Route route(); RoutingResult routingResult(); RoutingResultType routingResultType(); T value(); @Override String toString();  }
@Test void empty() { final Routed<?> result = Routed.empty(); assertThat(result.isPresent()).isFalse(); assertThatThrownBy(result::route).isInstanceOf(IllegalStateException.class); assertThatThrownBy(result::routingResult).isInstanceOf(IllegalStateException.class); assertThatThrownBy(result::value).isInstanceOf(IllegalStateException.class); }