public void testCreateTableWithOrphanedAlias() throws Exception {
String partitionName = new PartitionName("test", Arrays.asList(new BytesRef("foo"))).stringValue();
client().admin().indices().prepareCreate(partitionName)
.addMapping(Constants.DEFAULT_MAPPING_TYPE, TEST_PARTITIONED_MAPPING)
.setSettings(TEST_SETTINGS)
.addAlias(new Alias("test"))
.execute().actionGet();
ensureGreen();
CreateTableNode createTableNode = CreateTableNode.createTableNode(
"test",
TEST_SETTINGS,