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());
assertEquals(oldClient.getName(), client.getName());
assertEquals(oldClient.getUsernameParameter(), client.getUsernameParameter());