### Question:
DMNEditorMenuSessionItems extends AbstractDiagramEditorMenuSessionItems<DMNEditorMenuItemsBuilder> { @Override public void populateMenu(final FileMenuBuilder menu) { superPopulateMenu(menu); addPerformAutomaticLayout(menu); } @Inject  DMNEditorMenuSessionItems(final DMNEditorMenuItemsBuilder itemsBuilder,
                                     final @DMNEditor DMNEditorSessionCommands sessionCommands); @Override void populateMenu(final FileMenuBuilder menu); @Override void setEnabled(final boolean enabled);  }### Answer:
@Test public void testPopulateMenu() { final MenuItem menuItem = mock(MenuItem.class); doNothing().when(sessionItems).superPopulateMenu(any()); doReturn(menuItem).when(sessionItems).newPerformAutomaticLayout(); sessionItems.populateMenu(fileMenuBuilder); verify(sessionItems).addPerformAutomaticLayout(any()); }