### Question:
Dashboard extends BorderPane { public boolean hasItem(String id) { return items.containsKey(id); } @Inject  Dashboard(List<DashboardItem> itemsList, QuickbarDashboardButtonsPane dashboardButtons); @EventListener void onSetActiveDashboardItem(SetActiveDashboardItemRequest request); boolean hasItem(String id);  }### Answer:
@Test public void disabledItemsAreNotPicked() { List<DashboardItem> items = Arrays.asList(new EnabledItem(), new DisabledItem()); Dashboard victim = new Dashboard(items, new QuickbarDashboardButtonsPane(items)); assertTrue(victim.hasItem("enabled")); assertFalse(victim.hasItem("disabled")); }