@Test
public void testPRTParserBasics() throws Exception {

   try (InputStream input = getResourceAsStream("/test-documents/testCADKEY.prt")) {
      Metadata metadata = new Metadata();
      ContentHandler handler = new BodyContentHandler();
      new PRTParser().parse(input, handler, metadata);
      assertEquals("application/x-prt", metadata.get(Metadata.CONTENT_TYPE));
      // This file has a date
      assertEquals("2011-06-20T16:54:00",
              metadata.get(TikaCoreProperties.CREATED));
      // But no description
      assertEquals(null, metadata.get(TikaCoreProperties.DESCRIPTION));
      String contents = handler.toString();
      assertContains("Front View", contents);
      assertContains("Back View", contents);
      assertContains("Bottom View", contents);
      assertContains("Right View", contents);
      assertContains("Left View", contents);
      //assertContains("Isometric View", contents); // Can't detect yet
      assertContains("Axonometric View", contents);
      assertContains("You've managed to extract all the text!", contents);
      assertContains("This is more text", contents);
      assertContains("Text Inside a PRT file", contents);
   }
}