@Test
public void testValidOsgiVersion()
    throws EnforcerRuleException
{

    RequireOsgiCompatibleVersionRule rule = new RequireOsgiCompatibleVersionRule();
    // The most basic
    rule.ensureValidOsgiVersion( "1.0.0" );
    // The second most basic
    rule.ensureValidOsgiVersion( "1.2.3.4" );
    // A long form classifier
    rule.ensureValidOsgiVersion( "12.0.0.v20100511-114423" );
    // A SNAPSHOT version
    rule.ensureValidOsgiVersion( "4.0.2.SNAPSHOT" );
    // Some creative versions found "in the wild"
    rule.ensureValidOsgiVersion( "3.4.2.r342_v20081028-0800" );
    rule.ensureValidOsgiVersion( "3.4.3.R34x_v20081215-1030" );
    rule.ensureValidOsgiVersion( "3.0.5.v20090218-1800-e3x" );
    rule.ensureValidOsgiVersion( "1.1.1.M20080827-0800b" );
    rule.ensureValidOsgiVersion( "0.1.37.v200803061811" );
}