assertThat(spending.getString("display"), is("3 409,32 $ US"));
}
@Test
public void itHasTheEarningsDataForEachSummary() 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 earnings = (XmlsonObject) summary.get("earnings");
assertThat(earnings.getInteger("count"), is(5));
assertThat(earnings.getString("value"), is("2091.11"));
assertThat(earnings.getString("display"), is("2 091,11 $ US"));
}