### Question:
Fill extends BaseFill<E> { public Fill withText(String... textValues) { return with(textValues); } Fill(FluentList<E> list);  Fill(E element); Fill with(String... textValues); Fill withText(String... textValues);  }### Answer:
@Test public void testFillList() { FluentList<FluentWebElement> list = instantiator.asFluentList(Arrays.asList(element1, element2, element3, element4)); Fill fill = new Fill(list); when(element2.isDisplayed()).thenReturn(true); when(element2.isEnabled()).thenReturn(true); when(element3.isDisplayed()).thenReturn(true); when(element4.isDisplayed()).thenReturn(true); when(element4.isEnabled()).thenReturn(true); verify(driver, never()).findElement(any(By.class)); fill.withText("1", "2", "3"); verify(element1, never()).sendKeys(anyString()); verify(element2).sendKeys("1"); verify(element3, never()).sendKeys(anyString()); verify(element4).sendKeys("3"); }
@Test public void testFillElement() { when(element1.isDisplayed()).thenReturn(true); when(element1.isEnabled()).thenReturn(true); Fill fill = new Fill(el(element1)); verify(driver, never()).findElement(any(By.class)); fill.withText("1", "2", "3"); verify(element1).sendKeys("1"); }