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

  String yaml =
      String.join(
          "\n",
          "domain: 'test'",
          "ingredients:",
          "  - name: 'ingredient'",
          "    keyed: true",
          "    defaultKey: foo",
          "    required:",
          "      - name: required",
          "        type: int",
          "        default: 0");
  loader.load(toStream(yaml));
}