@Test
public void testParseCinchapiSemanticVersion() {

    int major = Random.getScaleCount();
    int minor = Random.getScaleCount();
    int patch = Random.getScaleCount();
    int build = Random.getScaleCount();
    String snapshot = Random.getBoolean() ? "-SNAPSHOT" : "";
    String cinchapiVersion = AnyStrings.format("{}.{}.{}.{}{}", major,
            minor, patch, build, snapshot);
    Version version = Versions.parseSemanticVersion(cinchapiVersion);
    Assert.assertEquals(major, version.getMajorVersion());
    Assert.assertEquals(minor, version.getMinorVersion());
    Assert.assertEquals(patch, version.getPatchVersion());
    Assert.assertEquals(String.valueOf(build), version.getBuildMetadata());
}