public void testObjectDetachment() {
// AURORA-729: Immutable wrapper objects are not always immutable.
Attribute attribute = new Attribute()
.setName("attr")
.setValues(ImmutableSet.of("a", "b", "c"));
HostAttributes mutable = new HostAttributes()
.setHost("a")
.setAttributes(ImmutableSet.of(attribute));
IHostAttributes immutable1 = IHostAttributes.FROM_BUILDER.apply(mutable);
IHostAttributes immutable2 = IHostAttributes.build(mutable);
assertEquals(immutable1, immutable2);