@Test(expected = IllegalArgumentException.class)
public void testDefectMetadata() throws Exception {

  MediaPackage mp = newMediaPackage("/manifest-simple-defect.xml");
  StaticMetadataServiceDublinCoreImpl ms = newStaticMetadataService();
  // should throw an IllegalArgumentException
  ms.getMetadata(mp);
}