@Test
void containsVersion() throws InvalidVersionRangeException
{

    assertTrue(new DefaultVersionRange("[1.0,2.0]").containsVersion((Version) new DefaultVersion("1.0")));
    assertTrue(new DefaultVersionRange("[1.0,2.0]").containsVersion((Version) new DefaultVersion("2.0")));
    assertFalse(new DefaultVersionRange("[2.0]").containsVersion((Version) new DefaultVersion("1.0")));
    assertFalse(new DefaultVersionRange("[2.0]").containsVersion((Version) new DefaultVersion("3.0")));
    assertFalse(new DefaultVersionRange("(1.0,2.0)").containsVersion((Version) new DefaultVersion("1.0")));
    assertFalse(new DefaultVersionRange("(1.0,2.0)").containsVersion((Version) new DefaultVersion("2.0")));
    assertTrue(new DefaultVersionRange("[1.0,2.0]").containsVersion(new TestVersion("1.0")));
    assertTrue(new DefaultVersionRange("[1.0,2.0]").containsVersion(new TestVersion("2.0")));
    assertFalse(new DefaultVersionRange("[2.0]").containsVersion(new TestVersion("1.0")));
    assertFalse(new DefaultVersionRange("[2.0]").containsVersion(new TestVersion("3.0")));
    assertFalse(new DefaultVersionRange("(1.0,2.0)").containsVersion(new TestVersion("1.0")));
    assertFalse(new DefaultVersionRange("(1.0,2.0)").containsVersion(new TestVersion("2.0")));
}