@Test
public void testMatches()
{

  VersionRange vr = new VersionRange("[1.0.0, 2.0.0]");
  
  assertFalse(vr.matches(new Version(0,9,0)));
  assertFalse(vr.matches(new Version(2,1,0)));
  assertTrue(vr.matches(new Version(2,0,0)));
  assertTrue(vr.matches(new Version(1,0,0)));
  assertTrue(vr.matches(new Version(1,5,0)));
  
  vr = new VersionRange("[1.0.0, 2.0.0)");
  
  assertFalse(vr.matches(new Version(0,9,0)));
  assertFalse(vr.matches(new Version(2,1,0)));
  assertFalse(vr.matches(new Version(2,0,0)));
  assertTrue(vr.matches(new Version(1,0,0)));
  assertTrue(vr.matches(new Version(1,5,0)));
  vr = new VersionRange("(1.0.0, 2.0.0)");
  
  assertFalse(vr.matches(new Version(0,9,0)));
  assertFalse(vr.matches(new Version(2,1,0)));
  assertFalse(vr.matches(new Version(2,0,0)));
  assertFalse(vr.matches(new Version(1,0,0)));
  assertTrue(vr.matches(new Version(1,5,0)));
  vr = new VersionRange("[1.0.0, 1.0.0]");
  assertFalse(vr.matches(new Version(0,9,0)));
  assertFalse(vr.matches(new Version(2,0,0)));
  assertTrue(vr.matches(new Version(1,0,0)));
  assertFalse(vr.matches(new Version(1,5,0)));
  assertFalse(vr.matches(new Version(1,9,9)));
}