### Question:
ControllerExtension implements Extension { public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) { LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass()); StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class); if (a != null && ControllerUtils.useEmbeddedController()) { removeControllerClassFromCDIContext(event); } }  void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event); void processEmbeddedController(@WithAnnotations({EmbeddedController.class}) @Observes ProcessAnnotatedType<T> event);  }### Answer:
@Test public void testStandaloneAnnotationWithEmbeddedController() { final ProcessAnnotatedType annotatedType = createAnnotatedType(KieServerStandaloneControllerProducer.class); extension.processStandaloneController(annotatedType); verify(annotatedType).veto(); }
@Test public void testStandaloneAnnotationWithStandaloneController() { ControllerUtils.getConfigProps().put(KIE_SERVER_CONTROLLER, "http: final ProcessAnnotatedType annotatedType = createAnnotatedType(KieServerStandaloneControllerProducer.class); extension.processStandaloneController(annotatedType); verify(annotatedType, never()).veto(); }