@Test
public void itItHasSummaries() throws Exception {
final XmlsonObject representation = presenter.present(data, Locale.CANADA_FRENCH);
final XmlsonArray summaries = (XmlsonArray) representation.get("summaries");
assertThat(summaries.getMembers()).hasSize(1);
final XmlsonObject summary = (XmlsonObject) summaries.getMembers().get(0);
assertThat(summary.getName()).isEqualTo("summary");
assertThat(((XmlsonObject) summary.get("interval")).getString("start")).isEqualTo("20070101");
assertThat(((XmlsonObject) summary.get("interval")).getString("end")).isEqualTo("20070201");
assertThat(((XmlsonObject) summary.get("balance")).getString("display")).isEqualTo("400,00 $ US");
assertThat(((XmlsonObject) summary.get("balance")).getString("value")).isEqualTo("400.00");