In my Cucumber Test Class I've set:
```
@ActiveProfiles(profiles = "Development")
@RunWith(Cucumber.class)
```
However, beans in My AppConfig are not getting injected into my Hooks and StepDefs
```
@Configuration
@Profile("Development")
public class AppConfig {
@Bean
public String devString() {
return "Hello Development";
}
}
```
Bean never gets injected by Spring
```
@Profile("Development")
public class Hooks {
@Inject
private String devString; /// this is null & doesn't get injected
@Before("@Before")
public void beforeScenario() {
System.out.println("devString = " + devString);
}
}
```