func getMessages(count int) model.Messages {
	msgPayloads := make([][]byte, count)
	for i, _ := range msgPayloads {
		msgPayloads[i] = []byte{byte(i + 1)}
	}
	msgs := model.MessagesFromClientData(msgPayloads)

	return msgs
}
// This is declared in MessageCache_test.go
func getMessages(count int) model.Messages {
	msgs := model.EMPTY_MESSAGES
	msgPayloads := make([][]byte, count)
	for i, _ := range msgPayloads {
		msgPayloads[i] = []byte{byte(i + 1)}
		additionalMsgs := model.MessagesFromClientData(msgPayloads[i : i+1])
		additionalMsgs.SetMessageTerm(int64(i + 1))
		msgs, _ = msgs.Join(additionalMsgs)
	}

	return msgs
}
func getMessages(count int) model.Messages {
	msgPayloads := make([][]byte, count)
	for i, _ := range msgPayloads {
		msgPayloads[i] = []byte{byte(i + 1)}
		// Extend to 10kB to help trigger segment allocation.
		remaining := 10*1024 - len(msgPayloads[i])
		msgPayloads[i] = append(msgPayloads[i], make([]byte, remaining, remaining)...)
	}
	msgs := model.MessagesFromClientData(msgPayloads)

	return msgs
}