### Question:
KieServerControllerNotificationMessageHandler implements MessageHandler.Whole<KieServerControllerNotification> { @Override public void onMessage(final KieServerControllerNotification message) { LOGGER.debug("Kie Server Controller Notification Message received: {}", message); if (notificationConsumer != null) { notificationConsumer.accept(message); } } KieServerControllerNotificationMessageHandler(final Consumer<KieServerControllerNotification> notificationConsumer); @Override void onMessage(final KieServerControllerNotification message);  }### Answer:
@Test public void testConsumerExecuted(){ final Consumer consumer = mock(Consumer.class); KieServerControllerNotificationMessageHandler handler = new KieServerControllerNotificationMessageHandler(consumer); final KieServerControllerNotification message = mock(KieServerControllerNotification.class); handler.onMessage(message); verify(consumer).accept(message); }