}
@Test
public void testNullSaltInRowKeyFormat2() throws InvalidLayoutException {
// This should be replaced with a non-null salt element / HashSpec record.
final TableLayoutDesc desc = TableLayoutDesc.newBuilder()
.setName("table_name")
.setKeysFormat(makeDefaultSaltRowKeyFormat())
.setVersion(TABLE_LAYOUT_VERSION)
.build();
final KijiTableLayout ktl = KijiTableLayout.newLayout(desc);
final TableLayoutDesc descOut = ktl.getDesc();
Object keysFormatRaw = descOut.getKeysFormat();
assertNotNull("Unexpected null RowKeyFormat2 field", keysFormatRaw);
assertTrue("keys_format should be an RKF2", keysFormatRaw instanceof RowKeyFormat2);
RowKeyFormat2 rkf2 = (RowKeyFormat2) keysFormatRaw;
HashSpec salt = rkf2.getSalt();