@Test
public void isUpToDateOnNoneRegularVersions() throws UnknownHostException {

    final DbArtifact artifact = new DbArtifact();
    artifact.setGroupId("com.axway.tests");
    artifact.setArtifactId("artifact");
    final List<String> versions = new ArrayList<String>();
    versions.add("bbbbbb");
    versions.add("cccccc");
    versions.add("dddddd");
    versions.add("eeeeee");
    when(repositoryHandler.getArtifactVersions((DbArtifact) anyObject())).thenReturn(versions);
    artifact.setVersion("aaaaaa");
    assertFalse(versionsHandler.isUpToDate(artifact));
    artifact.setVersion("zzzzzz");
    assertTrue(versionsHandler.isUpToDate(artifact));
    artifact.setVersion("eeeeee");
    assertTrue(versionsHandler.isUpToDate(artifact));
}