XmlUtils { static String getFirstMatchingStringData(final Document vastDoc, final String elementName) { return getFirstMatchingStringData(vastDoc, elementName, null, null); } private  XmlUtils();   }
@Test public void testGetFirstMatchingStringData_shouldFindFirstMatch() throws Exception { final String firstMatch = XmlUtils.getFirstMatchingStringData(testDoc, "aw:Comment", null, null); assertThat(firstMatch).isNotNull(); assertThat(firstMatch).isEqualTo("Confirm this is electric"); }