b.replaceAttributes(new AttributesImpl("a", "b"), new AttributesImpl("b", "c", "c", "d"));
b.replaceAttributes(Attributes.EMPTY_MAP, new AttributesImpl("Aa", "aA"));
b.replaceAttributes(new AttributesImpl("B", "A"), new AttributesImpl());
// Try both a fresh empty AttributesImpl() instance and the preallocated
// EMPTY_MAP.
b.replaceAttributes(new AttributesImpl(), Attributes.EMPTY_MAP);
// Now we add similar cases for annotation boundaries. Since consecutive annotation
// boundaries would make the operation ill-formed, we interleave them with further
// updateAttributes tests.
b.annotationBoundary(AnnotationBoundaryMapImpl.builder().build());
b.updateAttributes(new AttributesUpdateImpl());