### Question:
MyTransactionalBean { public void withoutTransaction() { id1 = bean1.getId(); id2 = bean2.getId(); }  @Transactional void withTransaction(); void withoutTransaction();  }### Answer:
@Test public void should_withoutTransaction_fail() { try { bean.withoutTransaction(); fail("No ContextNotActiveException"); } catch (ContextNotActiveException e) { } }