### Question:
FluentElementInjectionSupportValidator { static boolean isListOfWebElement(Field field) { return isFieldListOf(field, WebElement.class::isAssignableFrom); } FluentElementInjectionSupportValidator(ComponentsManager componentsManager);   }### Answer:
@Test public void shouldReturnFalseIfFieldIsNotListForListOfElement() throws NoSuchFieldException { Field notListField = getField("webElement"); assertThat(FluentElementInjectionSupportValidator.isListOfWebElement(notListField)).isFalse(); }
@Test public void shouldReturnFalseIfFieldIsNotListOfElement() throws NoSuchFieldException { Field listOfNotFluentWebElementField = getField("listOfFluentWebElements"); assertThat(FluentElementInjectionSupportValidator.isListOfWebElement(listOfNotFluentWebElementField)).isFalse(); }
@Test public void shouldReturnFalseIfFieldHasNoGenericTypeForListOfElement() throws NoSuchFieldException { Field listWithoutGenericTypeField = getField("listWithoutGenericType"); assertThat(FluentElementInjectionSupportValidator.isListOfWebElement(listWithoutGenericTypeField)).isFalse(); }
@Test public void shouldReturnTrueIfFieldIsListOfElement() throws NoSuchFieldException { Field listOfFluentWebElementField = getField("listOfWebElements"); assertThat(FluentElementInjectionSupportValidator.isListOfWebElement(listOfFluentWebElementField)).isTrue(); }