assertThat(restaurant.getSum().getCount()).isEqualTo(1);
}
@Test
public void itNestsTheCoffeeTagUnderCreditCard() throws Exception {
final Node restaurant = hierarchy.getChildren().get(tag("restaurant"));
final Node coffee = restaurant.getChildren().get(tag("coffee"));
assertThat(coffee.getSum().getAmount()).isEqualTo(money("5.00", USD));
assertThat(coffee.getSum().getCount()).isEqualTo(1);
assertThat(coffee.getChildren()).isEmpty();
}