@SuppressWarnings("unchecked")
public void should_handle_simple_routes() throws Exception {
SimpleWebServer server = SimpleWebServer.builder().setRouter(StdRestxMainRouter.builder()
.addRouter(RestxRouter.builder()
.withMapper(mapper)
.GET("/route1/{id}", Map.class, new MatchedEntityOutputRoute() {
@Override
public Optional route(RestxRequest restxRequest, RestxRequestMatch match) {
return Optional.of(ImmutableMap.of("id", match.getPathParam("id")));
}
})