@Test
public void testGetDicomPeriod() throws Exception {

    String period = TagD.getDicomPeriod(null);
    assertEquals("", period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("0"); //$NON-NLS-1$
    assertEquals("", period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("0Z"); //$NON-NLS-1$
    assertEquals("", period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("031Y"); //$NON-NLS-1$
    assertEquals("31 " + ChronoUnit.YEARS.toString(), period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("001Y"); //$NON-NLS-1$
    assertEquals("1 " + ChronoUnit.YEARS.toString(), period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("1Y"); //$NON-NLS-1$
    assertEquals("1 " + ChronoUnit.YEARS.toString(), period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("000Y"); //$NON-NLS-1$
    assertEquals("0 " + ChronoUnit.YEARS.toString(), period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("001M"); //$NON-NLS-1$
    assertEquals("1 " + ChronoUnit.MONTHS.toString(), period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("011W"); //$NON-NLS-1$
    assertEquals("11 " + ChronoUnit.WEEKS.toString(), period); //$NON-NLS-1$
    period = TagD.getDicomPeriod("111D"); //$NON-NLS-1$
    assertEquals("111 " + ChronoUnit.DAYS.toString(), period); //$NON-NLS-1$
}