RouterLink extends Component implements HasText, HasComponents,
        HasStyle, AfterNavigationObserver, Focusable<RouterLink> { public String getHref() { return HREF.get(this); } RouterLink();  RouterLink(String text,
            Class<? extends Component> navigationTarget); <T, C extends Component & HasUrlParameter<T>> RouterLink(String text,
            Class<? extends C> navigationTarget, T parameter);  RouterLink(String text, Class<? extends Component> navigationTarget,
            RouteParameters parameters);  RouterLink(Router router, String text,
            Class<? extends Component> navigationTarget); <T, C extends Component & HasUrlParameter<T>> RouterLink(
            Router router, String text, Class<? extends C> navigationTarget,
            T parameter);  RouterLink(Router router, String text,
            Class<? extends Component> navigationTarget,
            RouteParameters parameters); void setRoute(Router router,
            Class<? extends Component> navigationTarget); void setRoute(
            Router router, Class<? extends C> navigationTarget, T parameter); void setRoute(Router router,
            Class<? extends Component> navigationTarget,
            RouteParameters parameters); void setRoute(Class<? extends Component> navigationTarget); void setRoute(
            Class<? extends C> navigationTarget, T parameter); void setRoute(Class<? extends Component> navigationTarget,
            RouteParameters parameters); String getHref(); Optional<QueryParameters> getQueryParameters(); void setQueryParameters(QueryParameters queryParameters); HighlightCondition<RouterLink> getHighlightCondition(); void setHighlightCondition(
            HighlightCondition<RouterLink> highlightCondition); HighlightAction<RouterLink> getHighlightAction(); void setHighlightAction(
            HighlightAction<RouterLink> highlightAction); @Override void afterNavigation(AfterNavigationEvent event);  }
@Test public void routerLinkCreationForNormalRouteTarget() throws InvalidRouteConfigurationException { RouterLink link = new RouterLink(router, "Foo", FooNavigationTarget.class); Assert.assertEquals("foo", link.getHref()); }
@Test public void routerLinkCreationForUrlParameterRouteTarget() throws InvalidRouteConfigurationException { RouterLink link = new RouterLink(router, "Greeting", GreetingNavigationTarget.class, "hello"); Assert.assertEquals("greeting/hello", link.getHref()); }