I\'m using Spring 3.1.0.RELEASE, JUnit 4.8.1, and ultimately deploying my application to a JBoss 4.2 server (I know, I know). As part of setting up my unit test, I have thi
You can also use Mockito:
PlatformTransactionManager manager = mock(PlatformTransactionManager.class);