@@ -0,0 +1,2283 @@
+package org.openengsb.itests.htmlunit;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport java.io.File;%0A%0Aimport org.apache.commons.io.FileUtils;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.openengsb.itests.util.AbstractPreConfiguredExamTestHelper;%0Aimport org.ops4j.pax.exam.junit.ExamReactorStrategy;%0Aimport org.ops4j.pax.exam.junit.JUnit4TestRunner;%0Aimport org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;%0A%0Aimport com.gargoylesoftware.htmlunit.TextPage;%0Aimport com.gargoylesoftware.htmlunit.WebClient;%0A%0Aimport org.osgi.framework.Bundle;%0A%0A@RunWith(JUnit4TestRunner.class)%0A@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)%0Apublic class FrameworkVersionIT extends AbstractPreConfiguredExamTestHelper%0A%7B%0A    private static final Integer MAX_SLEEP_TIME_IN_SECONDS = 30;%0A%0A    private WebClient            webClient;%0A    private String               versionPageUrl;%0A%0A    @Before%0A    public void setUp() throws Exception%0A    %7B%0A        webClient = new WebClient();%0A        String httpport = getConfigProperty(%22org.ops4j.pax.web%22,%0A                %22org.osgi.service.http.port%22);%0A        versionPageUrl = String.format(%0A                %22http://localhost:%25s/system/framework.version.info%22, httpport);%0A        waitForSiteToBeAvailable(versionPageUrl, MAX_SLEEP_TIME_IN_SECONDS);%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception%0A    %7B%0A        webClient.closeAllWindows();%0A        FileUtils.deleteDirectory(new File(getWorkingDirectory()));%0A    %7D%0A%0A    @Test%0A    public void testIfVersionsMatch_shouldWork() throws Exception%0A    %7B%0A        final TextPage page = webClient.getPage(versionPageUrl);%0A        String pageVersion = page.getContent().trim().replace(%22-%22, %22.%22);%0A        Bundle%5B%5D bundles = getBundleContext().getBundles();%0A        Bundle infoBundle = null;%0A%0A        for (int i = 0; i %3C bundles.length; i++)%0A        %7B%0A            if (bundles%5Bi%5D.getSymbolicName().equals(%22org.openengsb.framework.info%22))%0A            %7B%0A                infoBundle = bundles%5Bi%5D;%0A                break;%0A            %7D%0A        %7D%0A        %0A        assertNotNull(infoBundle);%0A        assertEquals(pageVersion, infoBundle.getVersion().toString().trim());%0A    %7D%0A%7D%0A

add integration test to check version returned by http://localhost:8090/system/framework.version.info (cherry picked from commit 73f05c7875a643ed48fe29b7053a4b487c8e6753)