@Test
public void test() throws Exception {

    long period = PeriodParser.parse("450");
    Assert.assertEquals(450, period);
    period = PeriodParser.parse("200MILLISECONDS");
    Assert.assertEquals(200, period);
    period = PeriodParser.parse("2SECONDS");
    Assert.assertEquals(2 * 1000, period);
    period = PeriodParser.parse("5MINUTES");
    Assert.assertEquals(5 * 60 * 1000, period);
    period = PeriodParser.parse("2HOURS");
    Assert.assertEquals(2 * 60 * 60 * 1000, period);
}