public static int getWaitInSecond(String wait) {
        int w = 600;
        if(wait.endsWith("s")) {
            w = Integer.valueOf(wait.substring(0, wait.length() - 1));
        } else if (wait.endsWith("m")) {
            w = Integer.valueOf(wait.substring(0, wait.length() - 1)) * 60;
        }
        return w;
    }
@Test
    public void testGetWaitInSecond() {
        String w1 = "600s";
        String w2 = "10m";
        int w = ConsulUtils.getWaitInSecond(w1);
        Assert.assertEquals(600, w);
        w = ConsulUtils.getWaitInSecond(w2);
        Assert.assertEquals(600, w);
    }