@Test
public void testUpdateInputSourceWithUrlUpdatesSession() throws Exception {

    ProjectImportPortlet.LoginState loginState = new ProjectImportPortlet.LoginState();
    RemoteCredentials remoteCredentials = new RemoteCredentials();
    remoteCredentials.setUsername(name);
    remoteCredentials.setPassword(password);
    remoteCredentials.setServerUrl(newURL);
    new ProjectImportPortlet().setNewImportSource(
            remoteCredentials,
            session,
            responseData,
            loginState);
    verify(session).setAttribute(ProjectImportConstants.USERNAME, name);
    verify(session).setAttribute(ProjectImportConstants.PASSWORD, password);
    verify(session).setAttribute(ProjectImportConstants.SERVER_URL, newURL);
}