GiraphTransferRegulator gtr =
new GiraphTransferRegulator(job.getConfiguration());
PartitionOwner owner = mock(PartitionOwner.class);
when(owner.getPartitionId()).thenReturn(57);
assertFalse(gtr.transferThisPartition(owner));
gtr.incrementCounters(owner, vertex);
assertTrue(gtr.transferThisPartition(owner));
}
}