### Question:
ElementLocatorSearchContext implements SearchContext { @Override public WebElement findElement(By by) { return locator.findElement().findElement(by); } ElementLocatorSearchContext(ElementLocator locator); @Override List<WebElement> findElements(By by); @Override WebElement findElement(By by);  }### Answer:
@Test public void shouldFindElement() { locatorSearchContext = new ElementLocatorSearchContext(elementLocator); when(elementLocator.findElement()).thenReturn(element1); when(element1.findElement(by)).thenReturn(element2); assertThat(locatorSearchContext.findElement(by)).isSameAs(element2); }