}
@Test
public void testTwoStandalone() throws Exception {
YarnClusterManager manager = YarnClusterManager.getInstance();
YarnCluster cluster1 = manager.getCluster(new ClusterInfo("def", 1, 1));
YarnCluster cluster2 = manager.getCluster(new ClusterInfo("def", 2, 2));
cluster1.start();
cluster2.start();
Configuration configuration1 = cluster1.getConfiguration();
Configuration configuration2 = cluster2.getConfiguration();
String rmAddress1 = configuration1.get(YarnConfiguration.RM_ADDRESS);
String rmAddress2 = configuration2.get(YarnConfiguration.RM_ADDRESS);
assertThat(rmAddress1, not(rmAddress2));