Yes, but you're not testing the class. Have you used JUnit and Mockito before? I recommend to read this first: http://docs.mockito.googlecode.com/hg/org/mockito/Mockito.html