@Test
public void testPageRefresh() {

    final WebDriver mockDriver = mock(WebDriver.class);
    Navigation navigation = mock(Navigation.class);
    when(mockDriver.navigate()).thenReturn(navigation);
    MockSeleniumNavigationStepDefinitions navigationSteps = new MockSeleniumNavigationStepDefinitions(mockDriver);
    navigationSteps.pageRefresh();
    verify(navigation, times(1)).refresh();
}