@@ -0,0 +1,1017 @@
+package com.datastax.driver.core;%0A%0Aimport java.nio.ByteBuffer;%0Aimport java.util.Set;%0A%0Aimport org.testng.annotations.*;%0A%0Aimport static org.testng.Assert.assertFalse;%0A%0Aimport com.datastax.driver.core.CCMBridge.CCMCluster;%0A%0A/**%0A * Tests that the token map is correctly initialized at startup (JAVA-415).%0A */%0Apublic class TokenMapTest %7B%0A    CCMCluster ccmCluster = null;%0A    Cluster cluster = null;%0A%0A    @BeforeMethod(groups = %22short%22)%0A    public void setup() %7B%0A        ccmCluster = CCMBridge.buildCluster(1, Cluster.builder());%0A        cluster = ccmCluster.cluster;%0A    %7D%0A%0A    @Test(groups = %22short%22)%0A    public void initTest() %7B%0A        // If the token map is initialized correctly, we should get replicas for any partition key%0A        ByteBuffer anyKey = ByteBuffer.wrap(new byte%5B%5D%7B%7D);%0A        Set%3CHost%3E replicas = cluster.getMetadata().getReplicas(%22system%22, anyKey);%0A        assertFalse(replicas.isEmpty());%0A    %7D%0A%0A    @AfterMethod(groups = %22short%22)%0A    public void teardown() %7B%0A        ccmCluster.discard();%0A    %7D%0A%7D%0A

Add test for token map initialization at startup (JAVA-415).