public void testNativeDeserialize()
throws Exception
{
String json = objectMapper.writeValueAsString(NATIVE_AS_MAP);
TableHandle tableHandle = objectMapper.readValue(json, TableHandle.class);
assertEquals(tableHandle.getClass(), NativeTableHandle.class);
NativeTableHandle nativeHandle = (NativeTableHandle) tableHandle;
assertEquals(nativeHandle.getTableId(), 1);
assertEquals(nativeHandle.getSchemaName(), "native_schema");
assertEquals(nativeHandle.getTableName(), "native_table");