### Question:
FluentElementInjectionSupportValidator { boolean isComponent(Field field) { return componentsManager.isComponentClass(field.getType()); } FluentElementInjectionSupportValidator(ComponentsManager componentsManager);   }### Answer:
@Test public void shouldReturnTrueIfFieldIsComponent() throws NoSuchFieldException { when(componentsManager.isComponentClass(TestComponent.class)).thenReturn(true); Field componentField = getField("component"); assertThat(validator.isComponent(componentField)).isTrue(); }