Mockito implmentation for PileTest.