@Test
public void parseDateTimeTest() {

    DateTime parsed = ExpiryCheckHandler.parseDateTime("2020-03-05T10:21:27.021+01:00");
    Assert.assertEquals(1583400087021L, parsed.getMillis());
    // CET is assumed if timezone is missing
    DateTime parsedWithoutTimezone = ExpiryCheckHandler.parseDateTime("2020-03-05T10:21:27.021");
    Assert.assertEquals(1583400087021L, parsedWithoutTimezone.getMillis());
}