}
@Test
public void itHasTheSplitSummariesForEachSummary() throws Exception {
final XmlsonObject representation = presenter.present(ImmutableMap.of(interval, summary), Locale.CANADA_FRENCH);
final XmlsonArray summaries = (XmlsonArray) representation.get("summaries");
final XmlsonObject summary = (XmlsonObject) summaries.getMembers().get(0);
final XmlsonArray splits = (XmlsonArray) summary.get("splits");
final XmlsonObject foodSummary = (XmlsonObject) splits.getMembers().get(0);
final XmlsonObject tag = (XmlsonObject) foodSummary.get("tag");
assertThat(tag.getString("name")).isEqualTo("food");
final XmlsonObject spending = (XmlsonObject) foodSummary.get("spending");