Situation: I have service implementation class annotated with @Service with access to properties file.
@Service(\"myService\")
public class
Alternatively, to do an integration test I do this.
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"/applicationContext-test.xml"})
@Transactional
public class MyTest {
@Resource(name="myService")
public IMyService myService;
Then use the service as you would normally. Add the app context to your test/resources directory