public void testSerialization() throws Exception {
ClientConfiguration clientConfig = createConfig();
// sanity check that we're starting with what we're expecting
assertExpectedConfig(clientConfig);
String serialized = clientConfig.serialize();
ClientConfiguration deserializedClientConfig = ClientConfiguration.deserialize(serialized);
assertExpectedConfig(deserializedClientConfig);
}
private void assertExpectedConfig(ClientConfiguration clientConfig) {