final FormClient oldClient = new FormClient();
oldClient.setCallbackUrl(CALLBACK_URL);
oldClient.setName(TYPE);
oldClient.setPasswordParameter(PASSWORD);
oldClient.setUsernameParameter(USERNAME);
final ProfileCreator profileCreator = new UsernameProfileCreator();
oldClient.setProfileCreator(profileCreator);
final UsernamePasswordAuthenticator usernamePasswordAuthenticator = new SimpleTestUsernamePasswordAuthenticator();
oldClient.setUsernamePasswordAuthenticator(usernamePasswordAuthenticator);
final FormClient client = (FormClient) oldClient.clone();
assertEquals(oldClient.getCallbackUrl(), client.getCallbackUrl());