@Test
public void prefetchUrlIsRight() throws IOException, ExecutionException, InterruptedException {

    FreeStyleProject project = j.createFreeStyleProject("project");
    Run run = j.waitForCompletion(project.scheduleBuild2(0).waitForStart());
    FreeStylePipeline freeStylePipeline = (FreeStylePipeline) BluePipelineFactory.resolve(project);
    assertNotNull(freeStylePipeline);
    BlueRun blueRun = freeStylePipeline.getLatestRun();
    assertNotNull(blueRun);
    BlueOrganization organization = OrganizationFactory.getInstance().getContainingOrg(Jenkins.getInstance());
    ChangeSetContainerImpl container = new ChangeSetContainerImpl(
            organization,
            blueRun,
            run
    );
    BlueRunChangesetPreloader preloader = new BlueRunChangesetPreloader();
    RESTFetchPreloader.FetchData fetchData = preloader.getFetchData(container);
    assertEquals("/blue/rest/organizations/jenkins/pipelines/project/runs/1/changeSet/?start=0&limit=101", fetchData.getRestUrl());
}