*
* @return modules instances
*/
private Module[] getTestClassModules(TestClass testClass) {
GuiceConfiguration guiceConfiguration;
List<Module> modules = new ArrayList<Module>();
guiceConfiguration = testClass.getAnnotation(GuiceConfiguration.class);
Collections.addAll(modules, instantiateModules(guiceConfiguration.value()));
return modules.toArray(new Module[modules.size()]);
}