// NewMockAnchorEvent returns a new mock AnchorEvent.
NewMockAnchorEvent returns a new mock AnchorEvent.
// NewMockAnchorEvent returns a new mock AnchorEvent .
func NewMockAnchorEvent(t *testing.T) *vocab.AnchorEventType {
	t.Helper()
	const generator = "https://w3id.org/orb#v0"
	var (
		parentURL1 = testutil.MustParseURL("hl:uEiAsiwjaXOYDmOHxmvDl3Mx0TfJ0uCar5YXqumjFJUNIBg:uoQ-CeEdodHRwczovL2V4YW1wbGUuY29tL2Nhcy91RWlBc2l3amFYT1lEbU9IeG12RGwzTXgwVGZKMHVDYXI1WVhxdW1qRkpVTklCZ3hCaXBmczovL2JhZmtyZWlibXJtZW51eGhnYW9tb2Q0bTI2ZHM1enRkdWp4emhqb2JndnBzeWwydjJuZGNza3EyaWF5") 
		parentURL2 = testutil.MustParseURL("hl:uEiAn3Y7USoP_lNVX-f0EEu1ajLymnqBJItiMARhKBzAKWg:uoQ-CeEdodHRwczovL2V4YW1wbGUuY29tL2Nhcy91RWlBbjNZN1VTb1BfbE5WWC1mMEVFdTFhakx5bW5xQkpJdGlNQVJoS0J6QUtXZ3hCaXBmczovL2JhZmtyZWliaDN3aG5pc3VkNzZrbmt2N3o3dWNiZjNrMnJzNmtuaHZhamVybnJkYWJkYmZhb21ha2xp") 
	)
	witnessAnchorObj, err := vocab.NewAnchorObject(
		generator,
		vocab.MustUnmarshalToDoc([]byte(verifiableCred)),
		vocab.GzipMediaType,
	)
	require.NoError(t, err)
	require.Len(t, witnessAnchorObj.URL(), 1)
	published := time.Now()
	indexAnchorObj, err := vocab.NewAnchorObject(
		generator,
		vocab.MustMarshalToDoc(
			&sampleContentObj{
				Field1: "value1",
				Field2: "value2",
			},
		),
		vocab.GzipMediaType,
		vocab.WithLink(vocab.NewLink(witnessAnchorObj.URL()[0], vocab.RelationshipWitness)),
	)
	require.NoError(t, err)
	require.Len(t, indexAnchorObj.URL(), 1)
	anchorEvent := vocab.NewAnchorEvent(
		vocab.WithURL(NewRandomHashlink(t)),
		vocab.WithAttributedTo(testutil.MustParseURL("https://orb.domain1.com/services/orb")),
		vocab.WithIndex(indexAnchorObj.URL()[0]),
		vocab.WithPublishedTime(&published),
		vocab.WithParent(parentURL1, parentURL2),
		vocab.WithAttachment(vocab.NewObjectProperty(vocab.WithAnchorObject(indexAnchorObj))),
		vocab.WithAttachment(vocab.NewObjectProperty(vocab.WithAnchorObject(witnessAnchorObj))),
	)
	return anchorEvent
}
func NewMockAnchorEvent ( t * testing . T ) * vocab . AnchorEventType { t . Helper ( ) const generator = " " var ( parentURL1 = testutil . MustParseURL ( " " ) parentURL2 = testutil . MustParseURL ( " " ) ) witnessAnchorObj , err := vocab . NewAnchorObject ( generator , vocab . MustUnmarshalToDoc ( [ ] byte ( verifiableCred ) ) , vocab . GzipMediaType , ) require . NoError ( t , err ) require . Len ( t , witnessAnchorObj . URL ( ) , 1 ) published := time . Now ( ) indexAnchorObj , err := vocab . NewAnchorObject ( generator , vocab . MustMarshalToDoc ( & sampleContentObj { Field1 : " " , Field2 : " " , } , ) , vocab . GzipMediaType , vocab . WithLink ( vocab . NewLink ( witnessAnchorObj . URL ( ) [ 0 ] , vocab . RelationshipWitness ) ) , ) require . NoError ( t , err ) require . Len ( t , indexAnchorObj . URL ( ) , 1 ) anchorEvent := vocab . NewAnchorEvent ( vocab . WithURL ( NewRandomHashlink ( t ) ) , vocab . WithAttributedTo ( testutil . MustParseURL ( " " ) ) , vocab . WithIndex ( indexAnchorObj . URL ( ) [ 0 ] ) , vocab . WithPublishedTime ( & published ) , vocab . WithParent ( parentURL1 , parentURL2 ) , vocab . WithAttachment ( vocab . NewObjectProperty ( vocab . WithAnchorObject ( indexAnchorObj ) ) ) , vocab . WithAttachment ( vocab . NewObjectProperty ( vocab . WithAnchorObject ( witnessAnchorObj ) ) ) , ) return anchorEvent }
NewMockAnchorEvent returns a new mock AnchorEvent.
NewMockAnchorEvent returns a new mock AnchorEvent .
//nolint:lll //nolint:lll