JpaInitializer { @Start(order = 10) public void start() { persistService.start(); } @Inject  JpaInitializer(PersistService persistService); @Start(order = 10) void start(); @Dispose(order = 10) void stop();  }
@Test public void testStart() throws Exception { JpaInitializer jpaInitializer = new JpaInitializer(persistService); jpaInitializer.start(); verify(persistService).start(); Method method = JpaInitializer.class.getMethod("start"); Start start = method.getAnnotation(Start.class); assertEquals(10, start.order()); }