616263646566676869707172
context.refresh(); assertNotNull(context.getBean("communicationMethod")); assertNotNull(context.getBean("communicationMethodImpl")); Person ti = (Person) context.getBean("person"); while (true) { ti.act(); Thread.sleep(500); } }