@Test
public void testGossipInfo() throws Exception {

    String gossipInfoFromNodetool = FileUtils.getContentsAsString(new File(gossipInfo1));
    new Expectations() {
        {
            nodeProbe.getGossipInfo();
            result = gossipInfoFromNodetool;
            nodeProbe.getTokens("127.0.0.1");
            result = "123,234";
        }
    };
    List<Map<String, String>> gossipInfoList = cassandraOperations.gossipInfo();
    System.out.println(gossipInfoList);
    Assert.assertEquals(7, gossipInfoList.size());
    gossipInfoList
            .stream()
            .forEach(
                    gossipInfo -> {
                        Assert.assertEquals("us-east", gossipInfo.get("DC"));
                        Assert.assertNotNull(gossipInfo.get("PUBLIC_IP"));
                        Assert.assertEquals("1565153", gossipInfo.get("HEARTBEAT"));
                        if (gossipInfo.get("STATUS").equalsIgnoreCase("NORMAL"))
                            Assert.assertNotNull(gossipInfo.get("TOKENS"));
                        if (gossipInfo.get("PUBLIC_IP").equalsIgnoreCase("127.0.0.1"))
                            Assert.assertEquals("[123,234]", gossipInfo.get("TOKENS"));
                    });
}