public class MXMLUnitDataTests extends MXMLDataTests
{
protected IMXMLUnitData getMXMLUnitData(String[] code)
{
String mxml = getMXML(code);
IMXMLData mxmlData = getMXMLData(mxml);
assertThat("mxmlData", mxmlData, is(notNullValue()));
assertThat("getFileSpecification, getPath", mxmlData.getFileSpecification().getPath(), is(mxmlData.getPath()));
assertThat("getNumUnits", mxmlData.getNumUnits(), is(1));
assertThat("getEnd", mxmlData.getEnd(), is(mxml.length()));
assertThat("getRootTag", mxmlData.getRootTag(), is(nullValue()));
assertThat("getMXMLDialect", mxmlData.getMXMLDialect(), is(MXMLDialect.DEFAULT));
assertThat("getProblems", mxmlData.getProblems().size(), is(0));
return mxmlData.getUnit(0);
}