@Test public void testAnnotationsIsListener() throws Exception { assertTrue(JobListenerFactoryBean.isListener(new Object() { @BeforeJob public void foo(JobExecution execution) { } })); }
@Test public void testInterfaceIsListener() throws Exception { assertTrue(JobListenerFactoryBean.isListener(new JobListenerWithInterface())); }