public static char getEncoding(LockType lockType) {
    return PERSISTENCE_ENCODINGS.getOrDefault(lockType, UNKNOWN_LOCK_TYPE_ENCODING);
  }
@Test
    public void testGetEncoding() {
        assertEquals('r', LockTypeUtil.getEncoding(LockType.SHARED_READ));
        assertEquals('w', LockTypeUtil.getEncoding(LockType.SHARED_WRITE));
        assertEquals('x', LockTypeUtil.getEncoding(LockType.EXCL_WRITE));
        assertEquals('e', LockTypeUtil.getEncoding(LockType.EXCLUSIVE));
    }