* Tests extended cloning functionality.
*/
@Test
public void testClone()
{
FileBasedBuilderParametersImpl managedParams =
new FileBasedBuilderParametersImpl();
managedParams.setFileName("test.xml");
params.setManagedBuilderParameters(managedParams);
params.setFilePattern("somePattern");
MultiFileBuilderParametersImpl clone = params.clone();
assertEquals("Wrong pattern", params.getFilePattern(),
clone.getFilePattern());
assertNotSame("Managed parameters not cloned",
params.getManagedBuilderParameters(),
clone.getManagedBuilderParameters());
assertEquals("Wrong file name", managedParams.getFileHandler()
.getFileName(),
((FileBasedBuilderParametersImpl) clone
.getManagedBuilderParameters()).getFileHandler()
.getFileName());
}