### Question:
TransactionalCreditProcessor implements CreditProcessor { @Override @Transactional public void check(String account) { if ( !account.trim().startsWith("1234")) { throw new RuntimeException("account:["+account+"] is not valid!"); } System.out.printf("Inside Transactional Account [%s] is Okay\n", account ); }  @Override @Transactional void check(String account); @PostConstruct void acquireResource(); @PreDestroy void releaseResource();  }### Answer:
@Test public void shouldProcessTransactionalCredit() { System.out.printf("processor = %s\n", processor ); assertNotNull(processor); processor.check("1234"); }