public static long convertTimeUnitValueToSecond(long value, TimeUnit unit) {
        return TimeUnit.SECONDS.convert(value, unit);
    }
@Test
    public void testConvertTimeUnitValuetoSecond() {
        long dayRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.DAYS);
        long hourRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.HOURS);
        long minuteRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.MINUTES);
        long secondRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.SECONDS);
        long milRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.MILLISECONDS);
        long micRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.MICROSECONDS);
        long nanoRes = TimeUtils.convertTimeUnitValueToSecond(2, TimeUnit.NANOSECONDS);
        Assert.assertEquals(dayRes, 2 * 24 * 60 * 60);
        Assert.assertEquals(hourRes, 2 * 60 * 60);
        Assert.assertEquals(minuteRes, 2 * 60);
        Assert.assertEquals(secondRes, 2);
        Assert.assertEquals(milRes, 2 / 1000);
        Assert.assertEquals(micRes, 2 / 1000 / 1000);
        Assert.assertEquals(nanoRes, 2 / 1000 / 1000 / 1000);
    }