@Test
public void testWriteAndReadSecondaryLock() throws IOException {

  SecondaryLock expect = getSecondaryLock(COLUMN);
  SecondaryLock actual = new SecondaryLock();
  writeObjectToBufferAndRead(expect, actual);
  Assert.assertTrue(expect.equals(actual));
}