### Question:
DispatchHandler extends GenericHeapObject implements Handler { @Override public Promise<Response, NeverThrowsException> handle(final Context context, final Request request) { for (Binding binding : bindings) { if (binding.condition == null || Boolean.TRUE.equals(binding.condition.eval(Bindings.bindings(context, request)))) { if (binding.baseURI != null) { request.getUri().rebase(binding.baseURI); } return binding.handler.handle(context, request); } } return Promises.newResultPromise(Responses.newNotFound("no handler to dispatch to")); }  DispatchHandler addBinding(Expression<Boolean> condition, Handler handler, URI baseURI); DispatchHandler addUnconditionalBinding(Handler handler, URI baseURI); @Override Promise<Response, NeverThrowsException> handle(final Context context, final Request request);  }### Answer:
@Test public void testDispatchNoHandlerToDispatch() throws Exception { Response response = new DispatchHandler().handle(new RootContext(), new Request()).get(); assertThat(response.getStatus()).isEqualTo(Status.NOT_FOUND); assertThat(response.getEntity().getString()).contains("no handler to dispatch to"); }