public static MetadataExtractor create(String metadataClassName) {
    String metadataExtractorClassName = metadataClassName;
    try {
      LOGGER.info("Instantiating MetadataExtractor class {}", metadataExtractorClassName);
      MetadataExtractor metadataExtractor = (MetadataExtractor) Class.forName(metadataExtractorClassName).newInstance();
      return metadataExtractor;
    } catch (Exception e) {
      LOGGER.warn("No metadata extractor class passed in, using default");
      return new DefaultMetadataExtractor();
    }
  }
@Test
  public void testDefaultMetadataProvider() {
    Assert.assertTrue(MetadataExtractorFactory.create(null) instanceof DefaultMetadataExtractor);
  }