@Override
        public Integer call() throws Exception {
            for (int i = 0; i < 1000; i++) {
                Metadata m = new Metadata();
                long start = System.currentTimeMillis();
                start += random.nextInt(1000000);
                Date now = new Date(start);
                DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
                df.setTimeZone(TimeZone.getTimeZone("UTC"));
                m.set(TikaCoreProperties.CREATED, df.format(now));
                assertTrue(
                        Math.abs(now.getTime() - m.getDate(TikaCoreProperties.CREATED).getTime()) <
                                2000);

            }
            return 1;
        }
Defines a composite property, then checks that when set as the
composite the value can be retrieved with the property or the aliases
tika-core/src/test/java/org/apache/tika/metadata/TestMetadata.java