@Test
public void testParseTimestamp() throws Exception {

    try {
        Util.parseTimestamp("0");
        Assert.fail();
    } catch (IllegalArgumentException e) {
        if (!e.getMessage().contains(Constant.MESSAGE_INVALID_DATE_FORMAT)) {
            throw e;
        }
    }
    try {
        Util.parseTimestamp("20200101000000");
        Assert.fail();
    } catch (IllegalArgumentException e) {
        if (!e.getMessage().contains(Constant.MESSAGE_INVALID_DATE_FORMAT)) {
            throw e;
        }
    }
    Assert.assertEquals("20151130102200",
        Constant.DATE_FORMAT_ARGS.format(new Date(Util.parseTimestamp("20151130102200"))));
}