{
final PlaceHolderGraphDatabaseService placeHolderGraphDb = new PlaceHolderGraphDatabaseService( path.getAbsolutePath() );
final Broker broker;
if ( machineId == masterId )
{
broker = new FakeMasterBroker( machineId, placeHolderGraphDb );
}
else
{
broker = new FakeSlaveBroker( new MasterClient( "localhost",
Protocol.PORT, placeHolderGraphDb ), masterId, machineId, placeHolderGraphDb );