### Question:
RadiusServerEventRegistrar implements RadiusServerEventRegistrator, RadiusServerEventMonitorMXBean { @Subscribe public void packetReceived(PacketReceivedEvent receivedEvent) { LOG.message("RadiusServerEventRegistrar.packetReceived() called by EventBus"); packetReceived(); } @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 packetReceived() { EventBus eventBus = new EventBus(); final RadiusServerEventRegistrar eventRegistrar = new RadiusServerEventRegistrar(eventBus); eventRegistrar.packetReceived(); assertThat(eventRegistrar.getNumberOfPacketsRecieved()).isEqualTo(1); }