@Test
public void convert() throws Exception {

    Integer period = 5;
    Seconds seconds = (Seconds) converter.convert(period, TypeToken.of(Seconds.class));
    assertEquals(5, seconds.getSeconds());
    Minutes minutes = (Minutes) converter.convert(period, TypeToken.of(Minutes.class));
    assertEquals(5, minutes.getMinutes());
    Hours hours = (Hours) converter.convert(period, TypeToken.of(Hours.class));
    assertEquals(5, hours.getHours());
    Days days = (Days) converter.convert(period, TypeToken.of(Days.class));
    assertEquals(5, days.getDays());
    Weeks weeks = (Weeks) converter.convert(period, TypeToken.of(Weeks.class));
    assertEquals(5, weeks.getWeeks());
    Months months = (Months) converter.convert(period, TypeToken.of(Months.class));
    assertEquals(5, months.getMonths());
    Years years = (Years) converter.convert(period, TypeToken.of(Years.class));
    assertEquals(5, years.getYears());
}