@SuppressWarnings("rawtypes")
    public static Message validateInboundMessageAndGet(Map<String, String> options, Element referenceXml) {
        MessageInput<?> messageIO = MessageResolver.getMessageInput(options, referenceXml.getName(), Collections.emptyList());
        return validateInboundMessageAndGet(messageIO, referenceXml);
    }
Validates a inbound message and migrates it to the expectation if the parameter {@code autoMigrate} is set to true

@param options         Options which contain custom 'package' name or keys 'protocolName' (name of the protocol)
                       and 'outputFlavor' (flavor of the output e.g read-write) which are used to construct
                       class lookup root package.
@param referenceXml    the xml we expect the outbound message
@return the message if all went well
plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/migration/MessageValidatorAndMigrator.java