//ApplicationContext context1 = new AnnotationConfigApplicationContext(RabbitClientConfiguration.class);
ApplicationContext context1 = new ClassPathXmlApplicationContext("app-context.xml");
System.out.println("RabbitTemplate :: " + context1.getBean("rabbitTemplate"));
PaymentInfoPublisher pInfoPublisher = (PaymentInfoPublisher)context1.getBean("paymentInfoPublisher");
pInfoPublisher.publishMessage("Publishing test message: This is a test message!");
}
}