private void validateXmlFieldPresent(String message,String xmlTagName){
  for (  String xmlTag : Arrays.asList(String.format("<%s>",xmlTagName),String.format("</%s>",xmlTagName))) {
    assertTrue(String.format("%s expected, but not found.",xmlTag),message.contains(xmlTag));
  }
}

private void validateXmlFieldPresent ( String message , String xmlTagName ) { for ( String xmlTag : Arrays . asList ( String . format ( "<%s>" , xmlTagName ) , String . format ( "</%s>" , xmlTagName ) ) ) { assertTrue ( String . format ( "%s expected, but not found." , xmlTag ) , message . contains ( xmlTag ) ) ; } }
validates that a specified xml opening and closing set of tags are present in the message .
