final RowKeyFormat2 format = makeDefaultSaltRowKeyFormat();
// Test that the salt field is populated with the default value we expect. It's an incompatible
// change if this ever changes. In effect, the next few asserts test that the Avro IDL is not
// incompatibly changed.
HashSpec spec = format.getSalt();
assertNotNull("Didn't get a default HashSpec, got null!", spec);
assertEquals("Default hash spec doesn't have the well-defined default size",
2, (int) spec.getHashSize());
assertEquals("Default hash spec doesn't have the well-defined default algorithm",
HashType.MD5, spec.getHashType());
assertFalse("Default hash spec should have suppressKeyMaterialization false",
spec.getSuppressKeyMaterialization());
// And test that FormattedEntityId itself no longer has theNPE.
final FormattedEntityId formattedEntityId = makeId(format, "one", 1, 7L);
byte[] hbaseRowKey = formattedEntityId.getHBaseRowKey();