@Test
public void testGetDicomTime() throws Exception {

    LocalTime time = TagD.getDicomTime("070907.0705 "); //$NON-NLS-1$
    assertEquals(LocalTime.of(7, 9, 7, 70_500_000), time);
    time = TagD.getDicomTime("10"); //$NON-NLS-1$
    assertEquals(LocalTime.of(10, 0), time);
    time = TagD.getDicomTime("1010"); //$NON-NLS-1$
    assertEquals(LocalTime.of(10, 10), time);
    time = TagD.getDicomTime("021 "); //$NON-NLS-1$
    assertEquals(null, time);
    // Does not support leap second:
    // http://stackoverflow.com/questions/30984599/how-does-the-oracle-java-jvm-know-a-leap-second-is-occurring
    // time = TagUtil.getDicomTime("235960");
    // assertEquals(LocalTime.of(23, 59, 60), time);
    time = TagD.getDicomTime("07:09:07.0705 "); //$NON-NLS-1$
    assertEquals(LocalTime.of(7, 9, 7, 70_500_000), time);
}