}
@Test
public void returnsInsertBulkAutoGeneratedKeysMetadata() throws Exception
{
Flow flowConstruct = (Flow) muleContext.getRegistry().lookupFlowConstruct("insertBulkAutoGeneratedKeysMetadata");
List<MessageProcessor> messageProcessors = flowConstruct.getMessageProcessors();
PreparedBulkUpdateMessageProcessor queryMessageProcessor = (PreparedBulkUpdateMessageProcessor) messageProcessors.get(0);
Result<MetaData> outputMetaData = queryMessageProcessor.getOutputMetaData(null);
DefaultListMetaDataModel listMetaDataModel = (DefaultListMetaDataModel) outputMetaData.get().getPayload();
assertThat(listMetaDataModel.isArray(), equalTo(true));