### Question:
RadiusServerEventRegistrar implements RadiusServerEventRegistrator, RadiusServerEventMonitorMXBean { @Inject public RadiusServerEventRegistrar(@Named("RadiusEventBus") EventBus eventBus) { LOG.message("Entering RadiusServerEventRegistrar.RadiusServerEventRegistrar"); LOG.message("RadiusServerEventRegistrar - Registering with EventBus hashCode; " + eventBus.hashCode()); eventBus.register(this); ObjectName name = null; try { final MBeanServer server = ManagementFactory.getPlatformMBeanServer(); final String procName = ManagementFactory.getRuntimeMXBean().getName(); name = new ObjectName("OpenAM" + ":type=RadiusServer"); if (server.isRegistered(name)) { LOG.message("MBean with name " + name + " is already registered. Unregistering."); server.unregisterMBean(name); } server.registerMBean(this, name); LOG.message("Registered MBean with name '{}'", name.toString()); } catch (final Exception e) { LOG.error("Unable to register MBean", e); } LOG.message("Leaving RadiusServiceEntryRegistrar()"); } @Inject  RadiusServerEventRegistrar(@Named("RadiusEventBus") EventBus eventBus); @Subscribe void packetReceived(PacketReceivedEvent receivedEvent); @Override long packetReceived(); @Override long getNumberOfPacketsRecieved(); @Subscribe void packetAccepted(AuthRequestReceivedEvent receivedRadiusEvent); @Override long packetAccepted(); @Override long getNumberOfAcceptedPackets(); @Subscribe void packetProcessed(PacketProcessedEvent packetProcessedEvent); @Override long packetProcessed(); @Override long getNumberOfPacketsProcessed(); @Subscribe void authRequestAccepted(AuthRequestAcceptedEvent acceptedEvent); @Override long authRequestAccepted(); @Override long getNumberOfAuthRequestsAccepted(); @Subscribe void authRequestRejected(AuthRequestRejectedEvent authRequestRejectedEvent); @Override long authRequestRejected(); @Override long getNumberOfAuthRequestsRejected();  }### Answer:
@Test(enabled = true) public void testRadiusServerEventRegistrar() { EventBus eventBus = new EventBus(); final RadiusServerEventRegistrator eventRegistrar = new RadiusServerEventRegistrar(eventBus); assertThat(eventRegistrar).isNotNull(); }