Fix the Mockito fragility.