@Test
public void testNavigate_to_url() throws Exception {

    String pageUnderTest = "/test_pages/exampleButton.html";
    seleniumNavigationService.navigate_to_url(SenBotContext.RESOURCE_LOCATION_PREFIX + pageUnderTest);
    SenBotContext senBotContext = SenBotContext.getSenBotContext();
    String expectedUrl = senBotContext.getRuntimeResources().toString() + pageUnderTest;
    //To test this on windows we need to replace all backslash characers with forward slashes
    expectedUrl = expectedUrl.replaceAll("\\\\", "/");
    if (expectedUrl.startsWith("/")) {
        expectedUrl = expectedUrl.replaceFirst("/", "");
    }
    //remove any trailing slash from the url
    String foundUrl = senBotContext.getSeleniumDriver().getCurrentUrl();
    if (foundUrl.endsWith("/")) {
        foundUrl = foundUrl.substring(0, foundUrl.length() - 1);
    }
    assertEquals("file:///" + expectedUrl, foundUrl);
}