VastXmlManager { @Nullable String getCustomCtaText() { String customCtaText = XmlUtils.getFirstMatchingStringData(mVastDoc, CUSTOM_CTA_TEXT); if (customCtaText != null && customCtaText.length() <= MAX_CTA_TEXT_LENGTH) { return customCtaText; } return null; }    }
@Test public void getCustomCtaText_shouldReturnTheCorrectValue() { String customCtaText = mXmlManager.getCustomCtaText(); assertThat(customCtaText).isEqualTo("custom CTA text"); }