private static final CasProtocol CAS_PROTOCOL = CasProtocol.SAML;
protected abstract CasProtocol getCasProtocol();
public void testClone() {
final CasClient oldClient = new CasClient();
oldClient.setCasLoginUrl(CAS_LOGIN_URL);
oldClient.setCasPrefixUrl(CAS_PREFIX_URL);
oldClient.setCasProtocol(CAS_PROTOCOL);
oldClient.setRenew(true);
oldClient.setGateway(true);
oldClient.setAcceptAnyProxy(true);
final ProxyList proxyList = new ProxyList();
oldClient.setAllowedProxyChains(proxyList);
final CasProxyReceptor casProxyReceptor = new CasProxyReceptor();
oldClient.setCasProxyReceptor(casProxyReceptor);
final CasClient client = (CasClient) internalTestClone(oldClient);
assertEquals(oldClient.getCasLoginUrl(), client.getCasLoginUrl());
assertEquals(oldClient.getCasPrefixUrl(), client.getCasPrefixUrl());
assertEquals(oldClient.getCasProtocol(), client.getCasProtocol());
assertEquals(true, client.isRenew());
assertEquals(true, client.isGateway());
assertEquals(true, client.isAcceptAnyProxy());
assertEquals(oldClient.getAllowedProxyChains(), client.getAllowedProxyChains());
assertEquals(oldClient.getCasProxyReceptor(), client.getCasProxyReceptor());
}