@Test
public void updateExecutableMenuItemAttributes() {

    LIElement toUpdateMock = mock(LIElement.class);
    NodeList<Element> elementsByTagNameMock = mock(NodeList.class);
    Element itemMock = mock(Element.class);
    when(elementsByTagNameMock.getItem(0)).thenReturn(itemMock);
    when(toUpdateMock.getElementsByTagName("span")).thenReturn(elementsByTagNameMock);
    String id = "TEST-ID";
    String label = "TEST-LABEL";
    String i18n = "TEST-i18n";
    baseMenu.updateExecutableMenuItemAttributes(toUpdateMock, id, label, i18n);
    verify(toUpdateMock, times(1)).setId(eq(id));
    verify(itemMock, times(1)).setInnerHTML(eq(label));
}