}
}
@Test(dataProvider="collectionClassPairs")
public void testCloneTo(final Class<? extends StandardCallerArgumentCollection> fromClass, final Class<? extends StandardCallerArgumentCollection> toClass) {
final StandardCallerArgumentCollection fromObject;
try {
fromObject = randomArgumentCollection(fromClass);
} catch (final IllegalAccessException e) {
throw new SkipException("cannot create a random configuration");
} catch (final InstantiationException e) {
throw new SkipException("cannot create a random configuration");
}
final StandardCallerArgumentCollection toObject = fromObject.cloneTo(toClass);
Assert.assertNotNull(toObject);
Assert.assertEquals(toClass,toObject.getClass());
for (final Field field : fromClass.getFields())
if (!field.getDeclaringClass().isAssignableFrom(toClass))
continue;
else if (Modifier.isPrivate(field.getModifiers()))
continue;