assertEquals(1, ExceptionCustomListener.BIND_CALLS);
assertEquals("should have called overloaded method with type Object", 1, ExceptionCustomListener.UNBIND_CALLS);
}
public void testStandardListenerWithListeningMethodsSpecifiedAsCustomOnes() throws Exception {
listener = new OsgiServiceLifecycleListenerAdapter();
listener.setBeanFactory(createMockBF(new JustListener()));
listener.setTargetBeanName(BEAN_NAME);
listener.setBindMethod("bind");
listener.setUnbindMethod("unbind");
listener.afterPropertiesSet();