@Test
public void extendWithNull() {

    ValuesHKey key = createHKey("customer");
    key.valueAt(0).putInt32(42);
    ValuesHKey target = createHKey("order");
    key.copyTo((HKey) target);
    assertEquals(target.valueAt(0).getInt32(),42);
    assertEquals(target.segments(), 1);
    
    target.extendWithOrdinal(ordinal("order"));
    assertEquals(target.segments(), 2);
    target.extendWithNull();
    assertTrue (target.valueAt(1).isNull());
    
}