anchor.diff:      ],
       [ {namespace, "com.klarna.test.bix"}
       , {doc, "Some doc"}
  +    , {aliases, ["TestSubRecordAlias"]}
  +    ]).
  +
  +extracted_sub_record() ->
  +  avro_record:type(
  +    "TestSubRecord",
  +    [ avro_record:define_field(
  +        "sub_field1", avro_primitive:boolean_type())
  +    , avro_record:define_field(
  +        "sub_field2", "another.name.MyEnum")
  +    ],
  +    [ {namespace, "com.klarna.test.bix"}
  +    , {doc, "Some doc"}
  +    , {aliases, ["TestSubRecordAlias"]}
       ]).
   
   test_record() ->
  
positive.code:     ],
      [ {namespace, "com.klarna.test.bix"}
      , {doc, "Some doc"}
      ]
     ).
  
  extract_from_primitive_type_test() ->
    Type = avro_primitive:int_type(),
  
negative.code:              },
    ?assertEqual(Expected, extract_children_types(Type)).
  
  add_type_test() ->
    Store = new(),
    Store1 = add_type(test_record(), Store),
    ?assertEqual({ok, extracted_test_record()},
                 lookup_type("com.klarna.test.bix.TestRecord", Store1)),
    ?assertEqual({ok, extracted_test_record()},
                 lookup_type("com.klarna.test.bix.TestRecordAlias1", Store1)),
    ?assertEqual({ok, extracted_sub_record()},
                 lookup_type("com.klarna.test.bix.TestSubRecord", Store1)),
    ?assertEqual({ok, extracted_sub_record()},
                 lookup_type("com.klarna.test.bix.TestSubRecordAlias", Store1)).
  
  -endif.
  
  %%%_* Emacs ============================================================
  