I have a Test class and a separate data provider class as below. My test class extends AbstractTestNGSpringContextTests, so i am able to inject variables in my
AbstractTestNGSpringContextTests