RollBackGlobalWorker extends LocalTransactionWorker<GlobalRollbackOccured, GlobalTransactionLevelRollbacked, ErrorGlobalOccured> { @PostConstruct public void init() { languageTranslator.registerDecoder("rollback-global", new RollBackGlobalDecoder()); } RollBackGlobalWorker(); @PostConstruct void init(); @Override @BusinessLocalTransactional LocalTransactionStepDefinition onStart(GlobalRollbackOccured globalRollbackOccured); @Override @SwitchBusinessLocalTransactional LocalTransactionStepDefinition onNext(GlobalTransactionLevelRollbacked globalTransactionLevelRollbacked); @Override @RollBackBusinessLocalTransactional LocalTransactionStepDefinition onError(ErrorGlobalOccured errorGlobalOccured);  }
@Test public void testInitUseLanguageTranslator(){ rollBackGlobalWorkerUnderTest.init(); verify(languageTranslator).registerDecoder(anyString(),any(RollBackGlobalDecoder.class)); }