assertThat(found.getIndirectAdvanceAssignments().size(), equalTo(2));
Set<DirectAdvanceAssignment> directAdvanceAssignments = found.getChildren().get(0).getDirectAdvanceAssignments();
assertThat(directAdvanceAssignments.size(), equalTo(1));
DirectAdvanceAssignment directAdvanceAssignment = directAdvanceAssignments
.iterator().next();
assertThat(directAdvanceAssignment.getMaxValue(),
equalTo(new BigDecimal(1000)));
SortedSet<AdvanceMeasurement> advanceMeasurements = directAdvanceAssignment.getAdvanceMeasurements();
assertThat(advanceMeasurements.size(), equalTo(1));
assertThat(advanceMeasurements.iterator().next().getValue(),
equalTo(new BigDecimal(100)));
}