You can use Mockito as your mocking framework. It integrates nicely with TestNG. You don't have to extend any class to use Mockito with TestNG. You testing code is less coupled this way and if for any reason you need to use other mocking frameworks it's easy to do so.