@Test
public void testBake_serializesPayload_ingredientWithRequired() {

  Dispatcher spy = setupDispatcherSpy("A");
  Ingredient ingredient = new Ingredient("IngredientWithRequired", "A") {};
  ingredient.setRequired("required", 5);
  oven.bake(Recipe.prepare(ingredient));
  verify(spy).dispatch(payloadJson("{\"IngredientWithRequired\":{\"required\":5}}"));
}