addServicesAnnotatedOn(javaClass, services);
addServices(services);
}
private void addServicesAnnotatedOn(final Class<?> testClass, final List<Object> services) throws InstantiationException, IllegalAccessException {
final Services servicesAnnotation = testClass.getAnnotation(Services.class);
if (servicesAnnotation != null) {
final Service[] serviceAnnotations = servicesAnnotation.value();
for (final Service serviceAnnotation : serviceAnnotations) {
addServiceRepresentedBy(serviceAnnotation, services);
}
}