### Question:
ControllerExtension implements Extension { public <T> void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing embedded controller class: {}", event.getAnnotatedType().getJavaClass()); EmbeddedController a = event.getAnnotatedType().getJavaClass().getAnnotation(EmbeddedController.class); if (a != null) { if (ControllerUtils.useEmbeddedController()) { if (ControllerUtils.isOpenShiftSupported()) { if (ServerTemplateVFSStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } else { if (ServerTemplateOCPStorage.class .isAssignableFrom(event.getAnnotatedType().getJavaClass())) { removeControllerClassFromCDIContext(event); } } } else { removeControllerClassFromCDIContext(event); } } }  void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event); void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event);  }### Answer:
@Test public void testEmbeddedAnnotationWithEmbeddedController() { final ProcessAnnotatedType annotatedType = createAnnotatedType(KieServerEmbeddedControllerProducer.class); extension.processEmbeddedController(annotatedType); verify(annotatedType, never()).veto(); }
@Test public void testEmbeddedAnnotationWithStandaloneController() { ControllerUtils.getConfigProps().put(KIE_SERVER_CONTROLLER, "http: final ProcessAnnotatedType annotatedType = createAnnotatedType(KieServerEmbeddedControllerProducer.class); extension.processEmbeddedController(annotatedType); verify(annotatedType).veto(); }
@Test public void testEmbeddedAnnotationWithServerTemplateOCPStorage() { ControllerUtils.getConfigProps().put(KieServerControllerConstants.KIE_CONTROLLER_OPENSHIFT_ENABLED, "true"); final ProcessAnnotatedType annotatedType = createAnnotatedType(ServerTemplateOCPStorage.class); extension.processEmbeddedController(annotatedType); verify(annotatedType, never()).veto(); }