@SuppressWarnings("deprecation")
    @Test
    public void testCompositeProperty() {
        Metadata meta = new Metadata();
        Property compositeProperty = Property.composite(DublinCore.DESCRIPTION,
                new Property[]{TikaCoreProperties.DESCRIPTION,
                        Property.internalText("testDescriptionAlt")});
        String message = "composite description";
        meta.set(compositeProperty, message);

        // Fetch as the composite
        assertEquals(message, meta.get(compositeProperty));
        // Fetch as the primary property on the composite
        assertEquals(message, meta.get(DublinCore.DESCRIPTION));
        // Fetch as the aliases
        assertEquals(message, meta.get("testDescriptionAlt"));
    }
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