function helpTestCreateBubble(fn = undefined) {
  fieldMock.$replay();
  let numCalled = 0;
  /**
   * @suppress {visibility,duplicate} suppression added to enable type checking
   */
  bubblePlugin.createBubbleContents = (bubbleContainer) => {
    numCalled++;
    assertNotNull('bubbleContainer should not be null', bubbleContainer);
  };
  if (fn) {
    fn();
  }
  bubblePlugin.createBubble(link);
  assertEquals('createBubbleContents should be called', 1, numCalled);
  fieldMock.$verify();
}
@suppress {visibility,checkTypes} suppression added to enable type
checking