@Test
public void getTheLastVersionOfRegularVersions() throws IncomparableException {

    final List<String> versions = new ArrayList<String>();
    // Release older than Snapshot
    versions.add("0.1.0-1");
    versions.add("0.1.0-SNAPSHOT");
    assertEquals("0.1.0-SNAPSHOT", versionsHandler.getLastVersion(versions));
    // Digits based test
    versions.clear();
    versions.add("2.1.0-1");
    versions.add("0.1.0-SNAPSHOT");
    versions.add("1.1.0-SNAPSHOT");
    versions.add("2.0.0-SNAPSHOT");
    assertEquals("2.1.0-1", versionsHandler.getLastVersion(versions));
}