use of org.mule.test.heisenberg.extension.model.SaleInfo in project mule by mulesoft.
the class OperationExecutionTestCase method operationWithMapOfComplexType.
@Test
public void operationWithMapOfComplexType() throws Exception {
final String dean = "Dean";
final Map<String, SaleInfo> salesInfo = (Map<String, SaleInfo>) flowRunner("processSale").run().getMessage().getPayload().getValue();
assertThat(salesInfo, hasKey(dean));
final SaleInfo saleInfo = salesInfo.get(dean);
assertThat(saleInfo.getAmount(), is(500));
assertThat(saleInfo.getDetails(), is("Some detail"));
}
Aggregations