public void visit(Entry entry) {
		final AFreeplaneAction action = new EntryAccessor().getAction(entry);
		if (action != null) {
			entries.unregisterEntry(action, entry);
			if(! entries.contains(action))
			    acceleratorMap.removeActionAccelerator(freeplaneActions, action);
		}
	}
@Test
	public void unregistersEntryWithAction() {
		Entry actionEntry = new Entry();
		final AFreeplaneAction action = mock(AFreeplaneAction.class);
		IAcceleratorMap acceleratorMap= mock(IAcceleratorMap.class);
		FreeplaneActions freeplaneActions= mock(FreeplaneActions.class);
		new EntryAccessor().setAction(actionEntry, action);
		EntriesForAction entries = mock(EntriesForAction.class);
        final AcceleratorDestroyer acceleratorDestroyer = new AcceleratorDestroyer(freeplaneActions, acceleratorMap, entries);
		acceleratorDestroyer.visit(actionEntry);
		Mockito.verify(entries).unregisterEntry(action, actionEntry);
	}