assertThat(summaries.getMembers().size(), is(1));
}
@Test
public void itHasTheSpendingDataForEachSummary() throws Exception {
final XmlsonObject representation = presenter.present(ImmutableMap.of(tag, summary), Locale.CANADA_FRENCH);
final XmlsonArray summaries = (XmlsonArray) representation.get("summaries");
final XmlsonObject summary = (XmlsonObject) summaries.getMembers().get(0);
assertThat(summary.getName(), is("summary"));
final XmlsonObject spending = (XmlsonObject) summary.get("spending");
assertThat(spending.getInteger("count"), is(17));
assertThat(spending.getString("value"), is("3409.32"));
assertThat(spending.getString("display"), is("3 409,32 $ US"));
}