My thought is that you could declare an interface for TestsWithMocks functionality and it could be mixed into the class using delegation. You could not do the @BeforeTest method that way so you would have to provide a method the test class can call from a BeforeTest method
My thought is that you could declare an interface for TestsWithMocks functionality and it could be mixed into the class using delegation. You could not do the @BeforeTest method that way so you would have to provide a method the test class can call from a BeforeTest method