}
@Test
public void testDefaultSaltRowKeyFormat() {
// SCHEMA-335: This should use a default HashSpec rather than triggering an NPE.
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());