when(txaction.getTaggedAmounts()).thenReturn(ImmutableList.of(taggedAmount));
}
@Test
public void itHasAnArrayOfTaggedAmounts() throws Exception {
final XmlsonObject representation = presenter.present(txaction, Locale.UK);
final XmlsonArray tags = (XmlsonArray) representation.get("tags");
assertThat(tags.getMembers().size(), is(1));
final XmlsonObject tag = (XmlsonObject) tags.getMembers().get(0);
assertThat(tag, is(taggedAmountRepresentation));
verify(taggedAmountPresenter).present(this.taggedAmount, Locale.UK);
}