public void testCreateRequirePackageVersionedOptionalReExportDynamic() throws Exception
{
ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
VersionRange range = new VersionRange("1.0.0", "2.0.0");
Requirement test = factory.createRequirePackage("test", range, true, true, true);
PackageRequirement expected = new PackageRequirement("test", range);
expected.setOptional(true);
expected.setReExport(true);
expected.setDynamic(true);
assertEquals(expected, test);