ButtonImpl extends AbstractComponentImpl implements Button { @Override public String getLink() { if (linkURL == null) { Page targetPage = pageManager.getPage(link); if (targetPage != null) { linkURL = Utils.getURL(request, targetPage); } else { linkURL = link; } } return linkURL; }  @Override String getText(); @Override String getLink(); @Override @Nullable String getIcon(); @Override @Nullable String getAccessibilityLabel(); @NotNull @Override String getExportedType(); @Override String getDataLayerTitle(); @Override String getDataLayerLinkUrl(); static final String RESOURCE_TYPE; }
@Test void testGetLink() { Button button = getButtonUnderTest(); assertEquals("https: Utils.testJSONExport(button, Utils.getTestExporterJSONPath(TEST_BASE, "button1")); }