insert(IHostAttributes.build(noMode));
// Default mode NONE should be automatically applied.
assertEquals(Optional.of(HOST_A_ATTRS), read(HOST_A));
IHostAttributes updatedA = IHostAttributes.build(noMode.deepCopy().setMode(DRAINED));
// Inserting the updated value should ignore the mode.
insert(updatedA);
assertEquals(Optional.of(HOST_A_ATTRS), read(HOST_A));
// Instead, the mode must be explicitly set to be changed.