@Test
public void testBake_serializesPayload_recipeWithIngredientContext() {

  Dispatcher spy = setupDispatcherSpy("A");
  KeyedIngredient keyedIngredient = new KeyedIngredient("EmptyKeyedIngredient", "A") {};
  keyedIngredient.setKey("key");
  Ingredient ingredient = new Ingredient("EmptyIngredient", "A") {};
  oven.bake(Recipe.context(keyedIngredient, ingredient));
  verify(spy)
      .dispatch(
          "{\"recipe\":{\"Recipe\":{\"ingredients\":[{\"EmptyKeyedIngredient\":{\"key\":\"key\"}},{\"Recipe\":{\"ingredients\":[{\"EmptyIngredient\":{}}],\"context\":\"key\"}}]}},\"cake\":{}}");
}