@Test
public void isUpToDateOnRegularVersions() throws UnknownHostException {

    final DbArtifact artifact = new DbArtifact();
    artifact.setGroupId("com.axway.tests");
    artifact.setArtifactId("artifact");
    final List<String> versions = new ArrayList<String>();
    versions.add("0.1.0-SNAPSHOT");
    versions.add("0.1.0-SNAPSHOT");
    versions.add("1.1.0-SNAPSHOT");
    versions.add("2.0.0-SNAPSHOT");
    versions.add("2.1.0-1");
    versions.add("4.0.0-SNAPSHOT");
    when(repositoryHandler.getArtifactVersions((DbArtifact) anyObject())).thenReturn(versions);
    artifact.setVersion("3.0.0-SNAPSHOT");
    assertFalse(versionsHandler.isUpToDate(artifact));
    artifact.setVersion("2.1.0-1");
    assertTrue(versionsHandler.isUpToDate(artifact));
    artifact.setVersion("4.0.0-SNAPSHOT");
    assertTrue(versionsHandler.isUpToDate(artifact));
}