@Test
public void getModuleJenkinsJobInfoTest(){

    final DbArtifact artifact = new DbArtifact();
    artifact.setArtifactId("test");
    artifact.setVersion("1.0.0-SNAPSHOT");
    
    Map<String, String> buildInfo = new HashMap<String, String>();
    buildInfo.put("jenkins-job-url", "http://localhost:8080/test");
    
    DbModule module = new DbModule();
    module.setBuildInfo(buildInfo);
    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    when(repositoryHandler.getRootModuleOf(artifact.getGavc())).thenReturn(module);
    final ArtifactHandler handler = new ArtifactHandler(repositoryHandler, mock(LicenseMatcher.class));
    String jenkinsJobInfo = handler.getModuleJenkinsJobInfo(artifact);
    
    assertEquals("http://localhost:8080/test", jenkinsJobInfo);       
}