### Question:
AbstractLocatorHandler implements LocatorHandler<T> { @Override public boolean loaded() { return result != null; } AbstractLocatorHandler(ElementLocator locator); @Override boolean addListener(ProxyElementListener listener); @Override boolean removeListener(ProxyElementListener listener); @Override T getLocatorResult(); @Override void setHooks(HookChainBuilder hookChainBuilder, List<HookDefinition<?>> hookDefinitions); @Override ElementLocator getLocator(); @Override ElementLocator getHookLocator(); @Override boolean loaded(); @Override boolean present(); @Override void reset(); void setProxy(T proxy); abstract T getLocatorResultImpl(); String proxyToString(String elementToString);  }### Answer:
@Test public void shouldBeLoadedWhenResultIsNotNull() { locatorHandler.result = mock(FluentWebElement.class); assertThat(locatorHandler.loaded()).isTrue(); }
@Test public void shouldNotBeLoadedWhenResultIsNull() { locatorHandler.result = null; assertThat(locatorHandler.loaded()).isFalse(); }