@Test
public void testParse_malformedBody() {

  RequestBodyParser parser = new JsonRequestBodyParser();
  try {
    parser.parse(malformedJson);
    fail("Expected exception due to malformed body");
  } catch (BodyParseException e) {
    // expected case
  }
}