### Question:
PageAssert extends AbstractAssert<PageAssert, FluentPage> implements PageStateAssert { @Override public PageAssert hasExpectedUrl() { String url = actual.getUrl(); if (url == null) { failWithMessage("Page has not defined @PageUrl"); } actual.isAtUsingUrl(url); return this; } PageAssert(FluentPage actual); @Override PageAssert hasElement(FluentWebElement element); @Override PageAssert hasElements(FluentList<? extends FluentWebElement> fluentList); @Override PageAssert hasElementDisplayed(FluentWebElement element); @Override PageAssert hasTitle(String title); @Override PageAssert hasUrl(String url); @Override PageAssert hasPageSourceContaining(String value); @Override PageAssert hasExpectedUrl(); @Override PageAssert hasExpectedElements(); @Deprecated @Override PageAssert isAt();  }### Answer:
@Test public void testHasExpectedUrl() { String url = "https: when(fluentPage.getUrl()).thenReturn(url); pageAssert.hasExpectedUrl(); verify(fluentPage).isAtUsingUrl(url); }