### Question:
FeatureActionsMenuProvider implements ContextMenuProvider<DataGroupContextKey> { public Collection<? extends Component> menuItemsForLayer(DataTypeInfo layer) { List<Component> mergeMenus = New.list(); if (layer != null) { JMenuItem featureActionItem = SwingUtilities.newMenuItem("Feature Actions...", e -> myDisplayer.displaySimpleEditor(mainFrame.get(), layer)); mergeMenus.add(featureActionItem); } return mergeMenus; } FeatureActionsMenuProvider(ActionEditorDisplayer displayer, UIRegistry uiRegistry); @Override Collection<? extends Component> getMenuItems(String contextId, DataGroupContextKey key); @Override int getPriority(); Collection<? extends Component> menuItemsForLayer(DataTypeInfo layer); DataTypeInfo getDataTypes(DataGroupContextKey key);  }### Answer:
@Test public void test() { FeatureActionsMenuProvider menuProvider = new FeatureActionsMenuProvider(null, null); Collection<? extends Component> menuItems = menuProvider.menuItemsForLayer(ourLayer); assertEquals(1, menuItems.size()); JMenuItem menuItem = (JMenuItem)menuItems.iterator().next(); assertEquals("Feature Actions...", menuItem.getText()); }