anchor.diff:          false ->
             {error, {unknown_partition, Topic, Partition}};
           #partition_metadata{leader_id = LeaderId} ->
  -          Broker = lists:keyfind(LeaderId, #broker_metadata.node_id, Brokers),
  -          {ok, #broker_metadata{} = Broker}
  +          Leader = lists:keyfind(LeaderId, #broker_metadata.node_id, Brokers),
  +          LeaderPartitions =
  +            [{T, P} || #topic_metadata{name = T, partitions = Ps} <- Topics,
  +                       #partition_metadata{leader_id = Lid, id = P} <- Ps,
  +                       Lid =:= LeaderId],
  +          {ok, Leader, LeaderPartitions}
         end
     end.
   
  
positive.code: 
  %%%=============================================================================
  %%% @doc
  %%% @copyright 2014, 2015 Klarna AB
  %%% @end
  %%%=============================================================================
  
  
negative.code: %%%
  %%%   Copyright (c) 2014-2016, Klarna AB
  %%%
  %%%   Licensed under the Apache License, Version 2.0 (the "License");
  %%%   you may not use this file except in compliance with the License.
  