func getTestData() map[string]interface{} {
	var data map[string]interface{}
	_ = json.Unmarshal([]byte(jsonDate), &data)
	return data
}
/*
{
"SOURCE.source": {
"EventReceivedCount": "260969",
"Type": "SOURCE",
"AppendBatchAcceptedCount": "8357",
"EventAcceptedCount": "260969",
"AppendReceivedCount": "0",
"StartTime": "1503541553238",
"OpenConnectionCount": "0",
"AppendAcceptedCount": "0",
"AppendBatchReceivedCount": "8357",
"StopTime": "0"
},
"CHANNEL.channel": {
"ChannelCapacity": "5000000",
"ChannelFillPercentage": "0.0",
"Type": "CHANNEL",
"ChannelSize": "0",
"EventTakeSuccessCount": "260969",
"StartTime": "1503541553170",
"EventTakeAttemptCount": "277651",
"EventPutAttemptCount": "260969",
"EventPutSuccessCount": "260969",
"StopTime": "0"
},
"SINK.sink": {
"ConnectionCreatedCount": "109",
"Type": "SINK",
"ConnectionClosedCount": "108",
"BatchCompleteCount": "1567",
"BatchEmptyCount": "11067",
"EventDrainAttemptCount": "260969",
"StartTime": "1503541553174",
"EventDrainSuccessCount": "260969",
"BatchUnderflowCount": "5615",
"StopTime": "0",
"ConnectionFailedCount": "0"
}
}
package mpflume
import (
	"encoding/json"
	"testing"
	"github.com/stretchr/testify/assert"
)
var jsonDate = `{"SOURCE.source":{"EventReceivedCount":"260969","Type":"SOURCE","AppendBatchAcceptedCount":"8357","EventAcceptedCount":"260969","AppendReceivedCount":"0","StartTime":"1503541553238","OpenConnectionCount":"0","AppendAcceptedCount":"0","AppendBatchReceivedCount":"8357","StopTime":"0"},"CHANNEL.channel":{"ChannelCapacity":"5000000","ChannelFillPercentage":"0.0","Type":"CHANNEL","ChannelSize":"0","EventTakeSuccessCount":"260969","StartTime":"1503541553170","EventTakeAttemptCount":"277651","EventPutAttemptCount":"260969","EventPutSuccessCount":"260969","StopTime":"0"},"SINK.sink":{"ConnectionCreatedCount":"109","Type":"SINK","ConnectionClosedCount":"108","BatchCompleteCount":"1567","BatchEmptyCount":"11067","EventDrainAttemptCount":"260969","StartTime":"1503541553174","EventDrainSuccessCount":"260969","BatchUnderflowCount":"5615","StopTime":"0","ConnectionFailedCount":"0"}}`