@Test
public void connectionFactoryLocator() throws Exception {
assertTrue(context.containsBean("connectionFactoryLocator"));
assertTrue(context.getBean("connectionFactoryLocator") instanceof ConnectionFactoryLocator);
ConnectionFactoryLocator cfl = context.getBean(ConnectionFactoryLocator.class);
FakeConnectionFactory fakeConnectionFactory = (FakeConnectionFactory) cfl.getConnectionFactory(Fake.class);
assertNotNull(fakeConnectionFactory);
assertEquals("fakeAppId", fakeConnectionFactory.getAppId());
assertEquals("fakeAppSecret", fakeConnectionFactory.getAppSecret());
}