@Test
public void testPowerPointCustomProperties() throws Exception {

    Metadata metadata = new Metadata();
    try (InputStream input = OOXMLParserTest.class.getResourceAsStream(
            "/test-documents/testPPT_custom_props.pptx")) {
        ContentHandler handler = new BodyContentHandler(-1);
        ParseContext context = new ParseContext();
        context.set(Locale.class, Locale.US);
        new OOXMLParser().parse(input, handler, metadata, context);
    }
    assertEquals(
            "application/vnd.openxmlformats-officedocument.presentationml.presentation",
            metadata.get(Metadata.CONTENT_TYPE));
    assertEquals("JOUVIN ETIENNE", metadata.get(TikaCoreProperties.CREATOR));
    assertEquals("EJ04325S", metadata.get(TikaCoreProperties.MODIFIER));
    assertEquals("2011-08-22T13:30:53Z", metadata.get(TikaCoreProperties.CREATED));
    assertEquals("2011-08-22T13:32:49Z", metadata.get(TikaCoreProperties.MODIFIED));
    assertEquals("1", metadata.get(Office.SLIDE_COUNT));
    assertEquals("3", metadata.get(Office.WORD_COUNT));
    assertEquals("Test extraction properties pptx", metadata.get(TikaCoreProperties.TITLE));
    assertEquals("true", metadata.get("custom:myCustomBoolean"));
    assertEquals("3", metadata.get("custom:myCustomNumber"));
    assertEquals("MyStringValue", metadata.get("custom:MyCustomString"));
    assertEquals("2010-12-30T22:00:00Z", metadata.get("custom:MyCustomDate"));
    assertEquals("2010-12-29T22:00:00Z", metadata.get("custom:myCustomSecondDate"));
}