private ApplicationContext getApplicationContext(TestClass testClass) {
SpringClientAnnotationConfiguration springConfiguration =
testClass.getAnnotation(SpringClientAnnotationConfiguration.class);
String[] packages = springConfiguration.packages();
Class<?>[] classes = springConfiguration.classes();
// creates standard spring annotated application context
return createAnnotatedApplicationContext(testClass, packages, classes);
}