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

  String ingredients =
      String.join(
          "\n",
          "domain: 'test'",
          "ingredients:",
          "  - name: 'fooIngredient'",
          "    required:",
          "      - name: 'fooParam'",
          "        type: 'something'");
  loader.load(toStream(ingredients));
}