[ARQ-1304] Create test ApplicationContext through factory method.