public void roundTrip() throws Exception {
final WickedChart wickedChartBefore = new WickedChart(createOptions());
final String encodedString = encoderDecoder.toEncodedString(wickedChartBefore);
final WickedChart wickedChartAfter = encoderDecoder.fromEncodedString(encodedString);
String jsonBefore = new JsonRenderer().toJson(wickedChartBefore.getOptions());
String jsonAfter = new JsonRenderer().toJson(wickedChartAfter.getOptions());
assertThat(jsonBefore, is(jsonAfter));
}