KebabMenu implements IsElement { public void addSeparator() { final HTMLLIElement separator = (HTMLLIElement) document.createElement("li"); separator.classList.add("divider"); addKebabItem(separator); }  @Override HTMLElement getElement(); void addKebabItem(final HTMLLIElement item); void addSeparator(); void setItemsAlignment(final ItemsAlignment alignment); void setDropPosition(final DropPosition position);  }
@Test public void testAddSeparator() { kebabMenu.addSeparator(); verify(dropdownMenu).appendChild(any(HTMLLIElement.class)); }