@Autowired
private DefaultListableBeanFactory beanFactory;
@Test
public void testBeansAreProperlyConfigured() {
Cluster cluster1 = applicationContext.getBean("firstCluster", Cluster.class);
Cluster cluster2 = applicationContext.getBean("defaultCluster", Cluster.class);
Cluster cluster3 = applicationContext.getBean("replayingCluster", Cluster.class);
Cluster cluster4 = applicationContext.getBean("defaultOrderedCluster", Cluster.class);
Cluster cluster5 = applicationContext.getBean("customOrderedCluster", Cluster.class);
ClusterSelector selector1 = applicationContext.getBean("firstCluster$selector", ClusterSelector.class);
ClusterSelector selector2 = applicationContext.getBean("defaultCluster$defaultSelector", ClusterSelector.class);
assertNotNull(cluster1);
assertNotNull(cluster2);