@Test
public void testExactVersion() throws Exception
{

  VersionRange vr;
  try {
    vr = ManifestHeaderProcessor.parseVersionRange("[1.0.0, 2.0.0]", true);
    fail("should not get here 1");
  } catch (IllegalArgumentException e) {
    // expected
  }
  vr = ManifestHeaderProcessor.parseVersionRange("[1.0.0, 1.0.0]", true);
  assertTrue(vr.isExactVersion());
  try {
    vr = ManifestHeaderProcessor.parseVersionRange("(1.0.0, 1.0.0]", true);
    fail("should not get here 2");
  } catch (IllegalArgumentException e) {
    // expected
  }
  try {
    vr = ManifestHeaderProcessor.parseVersionRange("[1.0.0, 1.0.0)", true);
    fail("should not get here 3");
  } catch (IllegalArgumentException e) {
    // expected
  }
  vr = ManifestHeaderProcessor.parseVersionRange("[1.0.0, 2.0.0]");
  assertFalse(vr.isExactVersion());
  vr = ManifestHeaderProcessor.parseVersionRange("[1.0.0, 1.0.0]");
  assertTrue(vr.isExactVersion());
}