code: public static void assertEquals(String message, XmlObject expected, XmlObject actual)
    {
      assertEquals(message, expected.newCursor(), actual.newCursor());
    }
docs: Asserts that two XmlBeans are equivalent based on a deep compare (ignoring
  whitespace and ordering of element attributes). If the two XmlBeans are
  not equivalent, an AssertionFailedError is thrown, failing the test case.
  
  Note: we can't provide line numbers since XmlBeans only makes these available
  if we're using the Picollo parser.  We'll get line numbers when we upgrade to
  XmlBeans 2.0.
  
  @param message to display on test failure (may be null)
  @param expected
  @param actual