* @param testInstance a test instance of the test class
*/
public static void loadTestConfigurations(Class<?> testClass, Object testInstance) {
Field[] fields = testClass.getDeclaredFields();
for (Field field : fields) {
Provided providedAnnotation = field.getAnnotation(Provided.class);
if (providedAnnotation != null) {
String providerBeanName = providedAnnotation.value();
injectTestBean(providerBeanName, field, testInstance);
} else {
Inject injectAnnotation = field.getAnnotation(Inject.class);
if (injectAnnotation != null) {
// Check if it is Named wiring