public void returnsDeleteBulkMetadata() throws Exception
{
Flow flowConstruct = (Flow) muleContext.getRegistry().lookupFlowConstruct("deleteBulkMetadata");
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));
SimpleMetaDataModel elementModel = (SimpleMetaDataModel) listMetaDataModel.getElementModel();
assertThat(elementModel.getDataType(), equalTo(DataType.DOUBLE));