Mockito: What Is the Difference Between Mock and Spy? You need to know this if you want to reach your full potential with automated unit testing.