public void testStringToVersionConstraint() throws Exception
{
final MasterConversionService service = Sapphire.service( MasterConversionService.class );
assertEquals( new VersionConstraint( "1" ), service.convert( "1", VersionConstraint.class ) );
assertEquals( new VersionConstraint( "1.2" ), service.convert( "1.2", VersionConstraint.class ) );
assertEquals( new VersionConstraint( "1.2,3.4,5.6" ), service.convert( "1.2,3.4,5.6", VersionConstraint.class ) );
assertEquals( new VersionConstraint( "[1.2-3.4)" ), service.convert( "[1.2-3.4)", VersionConstraint.class ) );
assertEquals( new VersionConstraint( "[1.2-3.4),[5.6" ), service.convert( "[1.2-3.4),[5.6", VersionConstraint.class ) );
assertNull( service.convert( "[1.2--3", VersionConstraint.class ) );
assertNull( service.convert( "[1.2-3.4}", VersionConstraint.class ) );
}