### Question:
SimpleResourceListener implements EventHandler { public void handleEvent(final Event event) { logger.debug("Resource event: {} at: {}", event.getTopic(), event.getProperty(SlingConstants.PROPERTY_PATH)); }  void handleEvent(final Event event);  }### Answer:
@Test public void handleEvent() { Event resourceEvent = new Event("event/topic", Collections.singletonMap(SlingConstants.PROPERTY_PATH, "/content/test")); fixture.handleEvent(resourceEvent); List<LoggingEvent> events = logger.getLoggingEvents(); assertEquals(1, events.size()); LoggingEvent event = events.get(0); assertEquals(Level.DEBUG, event.getLevel()); assertEquals(2, event.getArguments().size()); assertEquals("event/topic", event.getArguments().get(0)); assertEquals("/content/test", event.getArguments().get(1)); }