public DateTokenConverter<Object> getPrimaryDateTokenConverter() {
        Converter<Object> p = headTokenConverter;

        while (p != null) {
            if (p instanceof DateTokenConverter) {
                DateTokenConverter<Object> dtc = (DateTokenConverter<Object>) p;
                // only primary converters should be returned as
                if (dtc.isPrimary())
                    return dtc;
            }

            p = p.getNext();
        }

        return null;
    }
@Test
    public void settingTimeZoneOptionHasAnEffect() {
        ZoneId tz = ZoneId.of("Australia/Perth");

        FileNamePattern fnp = new FileNamePattern("%d{hh, " + tz.getId() + "}", context);
        assertEquals(tz, fnp.getPrimaryDateTokenConverter().getZoneId());
    }