@Test
public void testBake_serializesPayload_ingredientWithRepeatableOptional_recordsMultipleCalls() {

  Dispatcher spy = setupDispatcherSpy("A");
  Ingredient ingredient = new Ingredient("IngredientWithRepeatableOptional", "A") {};
  ingredient.setOptional("optional", true, true);
  ingredient.setOptional("optional", true, false);
  oven.bake(Recipe.prepare(ingredient));
  verify(spy)
      .dispatch(
          payloadJson("{\"IngredientWithRepeatableOptional\":{\"optional\":[true,false]}}"));
}