@Test(expected = RuntimeException.class)
public void testLoad_throwsOnInitializerWithUndeclaredRequiredParam() {

  String ingredients =
      String.join(
          "\n",
          "domain: 'test'",
          "ingredients:",
          "  - name: 'fooIngredient'",
          "    required:",
          "      - name: 'requiredParam'",
          "        type: 'string'",
          "    initializers:",
          "      - params:",
          "        - 'undeclared'");
  loader.load(toStream(ingredients));
}