### Question:
FluentElementInjectionSupportValidator { static boolean isListOfFluentWebElement(Field field) { return isFieldListOf(field, FluentWebElement.class::isAssignableFrom); } FluentElementInjectionSupportValidator(ComponentsManager componentsManager);   }### Answer:
@Test public void shouldReturnFalseIfFieldIsNotListForListOfFluentWebElement() throws NoSuchFieldException { Field notListField = getField("webElement"); assertThat(FluentElementInjectionSupportValidator.isListOfFluentWebElement(notListField)).isFalse(); }
@Test public void shouldReturnFalseIfFieldIsNotListOfFluentWebElement() throws NoSuchFieldException { Field listOfNotFluentWebElementField = getField("listOfWebElements"); assertThat(FluentElementInjectionSupportValidator.isListOfFluentWebElement(listOfNotFluentWebElementField)).isFalse(); }
@Test public void shouldReturnFalseIfFieldHasNoGenericTypeForListOfFluentWebElement() throws NoSuchFieldException { Field listWithoutGenericTypeField = getField("listWithoutGenericType"); assertThat(FluentElementInjectionSupportValidator.isListOfFluentWebElement(listWithoutGenericTypeField)).isFalse(); }
@Test public void shouldReturnTrueIfFieldIsListOfFluentWebElement() throws NoSuchFieldException { Field listOfFluentWebElementField = getField("listOfFluentWebElements"); assertThat(FluentElementInjectionSupportValidator.isListOfFluentWebElement(listOfFluentWebElementField)).isTrue(); }