### Question:
Route implements Handler { public boolean accept(final Context context, Request request) { return (condition == null) || Boolean.TRUE.equals(condition.eval(bindings(context, request))); } Route(final Handler handler,
                 final String name,
                 final Expression<Boolean> condition); String getName(); boolean accept(final Context context, Request request); abstract void start(); abstract void destroy(); @Override Promise<Response, NeverThrowsException> handle(final Context context, final Request request);  }### Answer:
@Test public void testRouteAcceptingTheRequest() throws Exception { Route route = createRoute(Expression.valueOf("${true}", Boolean.class)); assertThat(route.accept(new RootContext(), null)).isTrue(); }
@Test public void testRouteRejectingTheRequest() throws Exception { Route route = createRoute(Expression.valueOf("${false}", Boolean.class)); assertThat(route.accept(new RootContext(), null)).isFalse(); }