anchor.diff:              "register service event",
               fun() ->
                   caterpillar_event:register_service(test),
  -                ?assertEqual(
  -                    [{service, test}],
  -                    caterpillar_event:get_info()
  -                )
  +                ?assertEqual([{service, test}], caterpillar_event:get_info())
               end
           },
           {
  
positive.code:             "register worker event",
              fun() ->
                  caterpillar_event:register_worker(test, work_id),
                  ?assertEqual(
                      [{worker, test}],
                      caterpillar_event:get_info()
                  )
              end
          },
          {
  
negative.code:         {
              "sync event rebuild_package",
              fun() -> 
                  Self = self(),
                  spawn(fun() ->
                      caterpillar_event:register_service(repository),
                      Self ! spawned,
                      case caterpillar_test_support:recv(10) of
                          {_, From, {rebuild_package, #package{name=name, branch=branch}}} ->
                              gen_server:reply(From, ok);
                          _ -> ok
                      end
                  end),
                  ?assertEqual(spawned, caterpillar_test_support:recv(10)),
                  ?assertEqual([{service, repository}], caterpillar_event:get_info()),
                  ?assertEqual(ok, caterpillar_event:sync_event({rebuild_package, #package{name=name, branch=branch}}))
              end
  