### Question:
QuickbarModuleButtonsPane extends BaseQuickbarButtonsPane { @EventListener public void onSetCurrentModuleRequest(SetActiveModuleRequest r) { r.getActiveModuleId().ifPresent(id -> buttons.forEach(b -> b.setSelected(b.moduleId().equals(id)))); } @Inject  QuickbarModuleButtonsPane(QuickbarModuleButtonsProvider provider); @EventListener void onSetCurrentModuleRequest(SetActiveModuleRequest r);  }### Answer:
@Test public void onSetCurrentModuleRequest() { buttons.forEach(m -> assertFalse(m.isSelected())); SetActiveModuleRequest r = SetActiveModuleRequest.activeteModule(DefaultPriorityTestModule.ID); victim.onSetCurrentModuleRequest(r); assertTrue(buttons.stream().filter(ModuleButton::isSelected) .allMatch(m -> m.moduleId().equals(DefaultPriorityTestModule.ID))); assertTrue(buttons.stream().filter(m -> !m.moduleId().equals(DefaultPriorityTestModule.ID)) .noneMatch(ModuleButton::isSelected)); }