ElementHelper { public static void remove(final Node element) { element.parentNode.removeChild(element); }  static void insertAfter(final Node newNode,
                                   final Node referenceNode); static void insertBefore(final Node newNode,
                                    final Node referenceNode); static void remove(final Node element);  }
@Test public void testRemove() { final Node node = mock(Node.class); final Node parentNode = mock(Node.class); node.parentNode = parentNode; ElementHelper.remove(node); verify(parentNode).removeChild(node); }