@Test
public void testBasic() throws Exception {

    String expectedXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n" +
            "<syncConfig xmlns=\"http://www.emc.com/ecs/sync/model\">\n" +
            "    <options>\n" +
            "        <!-- Metadata is synced by default -->\n" +
            "        <!-- boolean - Default: true -->\n" +
            "        <syncMetadata>true</syncMetadata>\n" +
            "        <!-- Sync retention/expiration information when syncing objects (in supported plugins). The target plugin will *attempt* to replicate retention/expiration for each object. Works only on plugins that support retention/expiration. If the target is an Atmos cloud, the target policy must enable retention/expiration immediately for this to work -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <syncRetentionExpiration>false</syncRetentionExpiration>\n" +
            "        <!-- Sync ACL information when syncing objects (in supported plugins) -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <syncAcl>false</syncAcl>\n" +
            "        <!-- Object data is synced by default -->\n" +
            "        <!-- boolean - Default: true -->\n" +
            "        <syncData>true</syncData>\n" +
            "        <!-- Path to a file that supplies the list of source objects to sync. This file must be in CSV format, with one object per line and the absolute identifier (full path or key) is the first value in each line. This entire line is available to each plugin as a raw string -->\n" +
            "        <!-- String -->\n" +
            "        <sourceListFile>sourceListFile</sourceListFile>\n" +
            "        <!-- Hierarchical storage will sync recursively by default -->\n" +
            "        <!-- boolean - Default: true -->\n" +
            "        <recursive>true</recursive>\n" +
            "        <!-- If syncing ACL information when syncing objects, ignore any invalid entries (i.e. permissions or identities that don't exist in the target system) -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <ignoreInvalidAcls>false</ignoreInvalidAcls>\n" +
            "        <!-- Force the write of each object, regardless of its state in the target storage -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <forceSync>false</forceSync>\n" +
            "        <!-- After a successful object transfer, the object will be read back from the target system and its MD5 checksum will be compared with that of the source object (generated during transfer). This only compares object data (metadata is not compared) and does not include directories -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <verify>false</verify>\n" +
            "        <!-- Similar to - -verify except that the object transfer is skipped and only read operations are performed (no data is written) -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <verifyOnly>false</verifyOnly>\n" +
            "        <!-- Supported source plugins will delete each source object once it is successfully synced (does not include directories). Use this option with care! Be sure log levels are appropriate to capture transferred (source deleted) objects -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <deleteSource>false</deleteSource>\n" +
            "        <!-- Sets the buffer size (in bytes) to use when streaming data from the source to the target (supported plugins only). Defaults to 512K -->\n" +
            "        <!-- int - Default: 524288 -->\n" +
            "        <bufferSize>524288</bufferSize>\n" +
            "        <!-- Specifies the number of objects to sync simultaneously. Default is 16 -->\n" +
            "        <!-- int - Default: 16 -->\n" +
            "        <threadCount>16</threadCount>\n" +
            "        <!-- Specifies how many times each object should be retried after an error. Default is 2 retries (total of 3 attempts) -->\n" +
            "        <!-- int - Default: 2 -->\n" +
            "        <retryAttempts>2</retryAttempts>\n" +
            "        <!-- Enables performance monitoring for reads and writes on any plugin that supports it. This information is available via the REST service during a sync -->\n" +
            "        <!-- boolean - Default: true -->\n" +
            "        <monitorPerformance>true</monitorPerformance>\n" +
            "        <!-- Enables operation timings on all plug-ins that support it -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <timingsEnabled>false</timingsEnabled>\n" +
            "        <!-- Sets the window for timing statistics. Every {timingWindow} objects that are synced, timing statistics are logged and reset. Default is 10,000 objects -->\n" +
            "        <!-- int - Default: 1000 -->\n" +
            "        <timingWindow>1000</timingWindow>\n" +
            "        <!-- Tracks all failed objects and displays a summary of failures when finished -->\n" +
            "        <!-- boolean - Default: false -->\n" +
            "        <rememberFailed>false</rememberFailed>\n" +
            "        <!-- Enables the Sqlite database engine and specifies the file to hold the status database. A database will make repeat runs and incrementals more efficient. You can also use the sqlite3 client to interrogate the details of all objects in the sync -->\n" +
            "        <!-- String -->\n" +
            "        <dbFile>dbFile</dbFile>\n" +
            "        <!-- Enables the MySQL database engine and specified the JDBC connect string to connect to the database (i.e. \"jdbc:mysql://localhost:3306/ecs_sync?user=foo&password=bar\") -->\n" +
            "        <!-- String -->\n" +
            "        <dbConnectString>dbConnectString</dbConnectString>\n" +
            "        <!-- Specifies the DB table name to use. Use this with - -db-connect-string to provide a unique table name or risk corrupting a previously used table. Default table is \"objects\" except in the UI, where a unique name is generated for each job. In the UI, specify a table name to ensure the table persists after the job is archived -->\n" +
            "        <!-- String -->\n" +
            "        <dbTable>dbTable</dbTable>\n" +
            "    </options>\n" +
            "\n" +
            "    <source>\n" +
            "        <!-- Xml Generator Storage documentation -->\n" +
            "        <xGSConfig>\n" +
            "            <!-- multiple values array -->\n" +
            "            <!-- String[] - Repeat for multiple values -->\n" +
            "            <array>value</array>\n" +
            "            <!-- really big number -->\n" +
            "            <!-- Long -->\n" +
            "            <bigNumber>bigNumber</bigNumber>\n" +
            "            <!-- yes or no -->\n" +
            "            <!-- boolean - Default: true -->\n" +
            "            <bool>true</bool>\n" +
            "            <!-- number description -->\n" +
            "            <!-- int - Default: 4 -->\n" +
            "            <number>4</number>\n" +
            "            <!-- restricted string values -->\n" +
            "            <!-- String - Values: [value1, value2, value3] -->\n" +
            "            <restrictedString>restrictedString</restrictedString>\n" +
            "            <!-- basic string -->\n" +
            "            <!-- String - Required -->\n" +
            "            <string>string</string>\n" +
            "            <!-- restricted by enum -->\n" +
            "            <!-- XGType - Values: [foo, bar, baz] - Default: bar -->\n" +
            "            <xgType>bar</xgType>\n" +
            "        </xGSConfig>\n" +
            "    </source>\n" +
            "\n" +
            "    <target>\n" +
            "        <!-- Xml Generator Storage documentation -->\n" +
            "        <xGSConfig>\n" +
            "            <!-- multiple values array -->\n" +
            "            <!-- String[] - Repeat for multiple values -->\n" +
            "            <array>value</array>\n" +
            "            <!-- really big number -->\n" +
            "            <!-- Long -->\n" +
            "            <bigNumber>bigNumber</bigNumber>\n" +
            "            <!-- yes or no -->\n" +
            "            <!-- boolean - Default: true -->\n" +
            "            <bool>true</bool>\n" +
            "            <!-- number description -->\n" +
            "            <!-- int - Default: 4 -->\n" +
            "            <number>4</number>\n" +
            "            <!-- restricted string values -->\n" +
            "            <!-- String - Values: [value1, value2, value3] -->\n" +
            "            <restrictedString>restrictedString</restrictedString>\n" +
            "            <!-- basic string -->\n" +
            "            <!-- String - Required -->\n" +
            "            <string>string</string>\n" +
            "            <!-- restricted by enum -->\n" +
            "            <!-- XGType - Values: [foo, bar, baz] - Default: bar -->\n" +
            "            <xgType>bar</xgType>\n" +
            "        </xGSConfig>\n" +
            "    </target>\n" +
            "</syncConfig>\n";
    String generatedXml = XmlGenerator.generateXml(true, true, "xgs:", "xgs:");
    Assert.assertEquals(expectedXml, generatedXml);
}