func TestMsgDefineServiceType(t *testing.T) {
	msg := NewMsgDefineService(testServiceName, testServiceDesc, testServiceTags, testAuthor, testAuthorDesc, testSchemas)
	require.Equal(t, "define_service", msg.Type())
}
TestMsgDefineServiceType tests Type for MsgDefineService
package types
import (
	"fmt"
	"strings"
	"testing"
	"github.com/stretchr/testify/require"
	"github.com/tendermint/tendermint/crypto/tmhash"
	sdk "github.com/cosmos/cosmos-sdk/types"
)
var (
	emptyAddress = ""
	testCoin1 = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(10000))
	testCoin2 = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100))
	testServiceName = "test-service"
	testServiceDesc = "test-service-desc"
	testServiceTags = []string{"tag1", "tag2"}
	testAuthor      = sdk.AccAddress(tmhash.SumTruncated([]byte("test-author"))).String()
	testAuthorDesc  = "test-author-desc"
	testSchemas     = `{"input":{"type":"object"},"output":{"type":"object"}}`
	testOwner        = sdk.AccAddress(tmhash.SumTruncated([]byte("test-owner"))).String()
	testProvider     = sdk.AccAddress(tmhash.SumTruncated([]byte("test-provider"))).String()
	testDeposit      = sdk.NewCoins(testCoin1)
	testPricing      = `{"price":"1stake"}`
	testQoS          = uint64(50)
	testOptions      = "{}"
	testWithdrawAddr = sdk.AccAddress(tmhash.SumTruncated([]byte("test-withdrawal-address"))).String()
	testAddedDeposit = sdk.NewCoins(testCoin2)
	testConsumer      = sdk.AccAddress(tmhash.SumTruncated([]byte("test-consumer"))).String()
	testProviders     = []string{testProvider}
	testInput         = `{"header":{},"body":{"pair":"iris-usdt"}}`
	testServiceFeeCap = sdk.NewCoins(testCoin2)
	testTimeout       = int64(100)
	testRepeatedFreq  = uint64(120)
	testRepeatedTotal = int64(100)
	testResult = `{"code":200,"message":""}`
	testOutput = `{"header":{},"body":{"last":"100"}}`
	rawTestRequestContextID = GenerateRequestContextID(tmhash.Sum([]byte("test-request-context-id")), 0)
	testRequestContextID    = rawTestRequestContextID.String()
	testRequestID           = GenerateRequestID(rawTestRequestContextID, 1, 1, 1).String()
	invalidName = "invalid/service/name"
)
func TestMsgDefineServiceRoute(t *testing.T) {
	msg := NewMsgDefineService(testServiceName, testServiceDesc, testServiceTags, testAuthor, testAuthorDesc, testSchemas)
	require.Equal(t, RouterKey, msg.Route())
}