@Test
public void testWriteAndReadThemisLock() throws IOException {

  ThemisLock expect = getNullThemisLock();
  ThemisLock actual = new NullThemisLock();
  writeObjectToBufferAndRead(expect, actual);
  Assert.assertTrue(expect.equals(actual));
}