public void runTest() throws Throwable {
  Document doc;
  NodeList elementList;
  Node nameNode;
  CharacterData child;
  String childData;
  doc=(Document)load("hc_staff",true);
  elementList=doc.getElementsByTagName("strong");
  nameNode=elementList.item(0);
  child=(CharacterData)nameNode.getFirstChild();
  child.insertData(15,", Esquire");
  childData=child.getData();
  assertEquals("characterdataInsertDataEndAssert","Margaret Martin, Esquire",childData);
}

public void runTest ( ) throws Throwable { Document doc ; NodeList elementList ; Node nameNode ; CharacterData child ; String childData ; doc = ( Document ) load ( "hc_staff" , true ) ; elementList = doc . getElementsByTagName ( "strong" ) ; nameNode = elementList . item ( 0 ) ; child = ( CharacterData ) nameNode . getFirstChild ( ) ; child . insertData ( 15 , ", Esquire" ) ; childData = child . getData ( ) ; assertEquals ( "characterdataInsertDataEndAssert" , "Margaret Martin, Esquire" , childData ) ; }
runs the test case .
