@Test
public void testExtraRequirementMissingType() throws Exception {

    Xpp3Dom dom = createConfigurationDom("id", "versionRange");
    try {
        configurationReader.readExtraRequirements(new TargetPlatformConfiguration(), dom);
        fail();
    } catch (BuildFailureException e) {
        assertTrue(
                e.getMessage().contains("Element <type> is missing in <extraRequirements><requirement> section."));
    }
}