func BenchmarkNewFluentRecordSetJSON(b *testing.B) {
	b.ResetTimer()
	buf := []byte(createRecordsetSampleJSON(10))
	for i := 0; i < b.N; i++ {
		_ = hydra.NewFluentRecordSetJSON("dummy", "message", nil, buf)
	}
}
func TestNewFluentRecordSetJSON(t *testing.T) {
	buf := []byte(createRecordsetSampleJSON(1))
	record := hydra.NewFluentRecordSetJSON("dummy", "message", nil, buf)
	if record.Tag != "dummy" {
		t.Errorf("invalid tag: %s", record.Tag)
	}
	if len(record.Records) != 1 {
		t.Errorf("invalid record length: %#v", len(record.Records))
	}
}