Migrate from easymock to mockito Bug: Issue 5057 Change-Id: I6feb4de82976cc3b0731146e14f8f3bdc1649925