testBasicLayout() {
    dialog = createTestDialog();
    mockCtrl.$replayAll();

    // create some dialog content
    const content = dom.createDom(TagName.DIV, null, 'The Content');
    builder.setTitle('The Title')
        .setContent(content)
        .addOkButton('The OK Button')
        .addCancelButton()
        .addButton('The Apply Button', () => {})
        .addClassName('myClassName');
    dialog.show();

    /** @suppress {visibility} suppression added to enable type checking */
    const dialogElem = dialog.dialogInternal_.getElement();
    const html = dialogElem.innerHTML;
    // TODO(user): This is really insufficient. If the title and
    // content were swapped this test would still pass!
    assertContains('Dialog html should contain title', '>The Title<', html);
    assertContains('Dialog html should contain content', '>The Content<', html);
    assertContains(
        'Dialog html should contain custom OK button label', '>The OK Button<',
        html);
    assertContains(
        'Dialog html should contain default Cancel button label', '>Cancel<',
        html);
    assertContains(
        'Dialog html should contain custom button label', '>The Apply Button<',
        html);
    assertTrue(
        'Dialog should have default Closure class',
        classlist.contains(dialogElem, 'modal-dialog'));
    assertTrue(
        'Dialog should have our custom class',
        classlist.contains(dialogElem, 'myClassName'));

    mockCtrl.$verifyAll();
  }
Tests that labels set in the builder can be found in the resulting dialog's
HTML.