@Test
void testInvalidTimerUnit()
{

  TimerValues timerValues = new TimerValues();
  TimerConfigurationType timerConfigurationType = new TimerConfigurationType();
  TimerType timerType = new TimerType();
  timerType.setUnit(Calendar.MILLISECOND);
  timerType.setLength(10);
  timerConfigurationType.setCrlRenewal(timerType);
  IllegalArgumentException illegalArgumentException = Assertions.assertThrows(IllegalArgumentException.class,
                                                                              () -> timerValues.getCrlRate(timerConfigurationType));
  Assertions.assertEquals("Unsupported unit of time: " + Calendar.MILLISECOND,
                          illegalArgumentException.getMessage());
}