* Tests whether an object can be cloned which supports cloning.
*/
@Test
public void testCloneIfPossibleSupported()
{
XMLBuilderParametersImpl params = new XMLBuilderParametersImpl();
params.setPublicID("testID");
params.setSchemaValidation(true);
XMLBuilderParametersImpl clone =
(XMLBuilderParametersImpl) ConfigurationUtils
.cloneIfPossible(params);
assertNotSame("No clone was created", params, clone);
Map<String, Object> map = clone.getParameters();
for (Map.Entry<String, Object> e : params.getParameters().entrySet())
{
if (!e.getKey().startsWith("config-"))
{
assertEquals("Wrong value for field " + e.getKey(),