@Test
public void testSamePageNoDestination() throws PortletException {

	Mockito.doReturn(
		"http://example.com/web/guest/home?param=arg"
	).when(
		_themeDisplay
	).getURLCurrent();
	SearchBarPortletDisplayBuilder searchBarPortletDisplayBuilder =
		createSearchBarPortletDisplayBuilder();
	SearchBarPortletDisplayContext searchBarPortletDisplayContext =
		searchBarPortletDisplayBuilder.build();
	Assert.assertFalse(
		searchBarPortletDisplayContext.isDestinationUnreachable());
	Assert.assertEquals(
		"/web/guest/home", searchBarPortletDisplayContext.getSearchURL());
}