@Test
public void testExtraRequirementMissingVersionRange() throws Exception {

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