public void testSplitAttributesFormat()
      throws UnsupportedEncodingException, IOException, CoreException {
    // BUG113584
    XMLFormattingPreferences prefs = new XMLFormattingPreferences();
    // the below tests are slighty different from old formatter test
    prefs.setIndentMultipleAttributes(true);
    prefs.setAlignFinalBracket(false);
    formatAndAssertEquals(
        "testfiles/xml/multiattributes2.xml",
        "testfiles/xml/multiattributes2-yessplit-noalign-newfmt.xml",
        prefs);

    prefs.setIndentMultipleAttributes(false);
    prefs.setAlignFinalBracket(false);
    formatAndAssertEquals(
        "testfiles/xml/multiattributes2.xml",
        "testfiles/xml/multiattributes2-nosplit-noalign-newfmt.xml",
        prefs);
  }
  public void testAlignEndBracketFormat()
      throws UnsupportedEncodingException, IOException, CoreException {
    // results are different than old formatter
    // BUG113584
    XMLFormattingPreferences prefs = new XMLFormattingPreferences();
    prefs.setIndentMultipleAttributes(false);
    prefs.setAlignFinalBracket(true);
    formatAndAssertEquals(
        "testfiles/xml/multiattributes.xml",
        "testfiles/xml/multiattributes-nosplit-yesalign-newfmt.xml",
        prefs);

    // results are different than old formatter
    prefs.setIndentMultipleAttributes(true);
    prefs.setAlignFinalBracket(true);
    formatAndAssertEquals(
        "testfiles/xml/multiattributes.xml",
        "testfiles/xml/multiattributes-yessplit-yesalign-newfmt.xml",
        prefs);
  }