@Override
	public void visit(Entry target) {
		final FreeplaneMenuBar menuBar = userInputListenerFactory.getMenuBar();
		addMnemonicsBeforeShowing(menuBar);
		new EntryAccessor().setComponent(target, menuBar);
	}
@Test
	public void createsEmptyToolbarComponent() {
		Entry toolbarEntry = new Entry();
		final IUserInputListenerFactory userInputListenerFactory = mock(IUserInputListenerFactory.class);
		final FreeplaneMenuBar menubar = TestMenuBarFactory.createFreeplaneMenuBar();
		when(userInputListenerFactory.getMenuBar()).thenReturn(menubar);
		final JMenubarBuilder toolbarBuilder = new JMenubarBuilder(userInputListenerFactory);
		toolbarBuilder.visit(toolbarEntry);

		assertThat(new EntryAccessor().getComponent(toolbarEntry), CoreMatchers.<Object> is(menubar));
	}