@Test
public void testJsonBodyParser() {
final JsonObject json = new JsonObject().putString("key", "value");
Yoke yoke = new Yoke(this);
yoke.use(new com.jetdrone.vertx.yoke.middleware.BodyParser());
yoke.use(new Handler<YokeRequest>() {
@Override
public void handle(YokeRequest request) {
assertNotNull(request.body());
assertEquals(((JsonObject) request.body()).encode(), json.encode());
request.response().end();