### Question:
CountSerDeUtils { public static Count deserialize( String json ) { ObjectMapper mapper = new ObjectMapper(); mapper.setVisibility( PropertyAccessor.CREATOR, JsonAutoDetect.Visibility.ANY ); try { return mapper.readValue( json, Count.class ); } catch ( IOException e ) { throw new CountTransportSerDeException( "Problem in deserialize() call", e ); } }  static String serialize( Count count ); static Count deserialize( String json );  }### Answer:
@Test public void testMixedDeserializer() { Count count = CountSerDeUtils.deserialize( MIXED_TYPE_JSON ); assertEquals( 1, count.getKeyName() ); assertEquals( "c1", count.getColumnName() ); assertEquals( "Counters", count.getTableName() ); assertEquals( 1, count.getValue() ); }
@Test public void testDeserializer() { Count count = CountSerDeUtils.deserialize( SIMPLE_JSON ); assertEquals( "k1", count.getKeyName() ); assertEquals( "c1", count.getColumnName() ); assertEquals( "Counters", count.getTableName() ); assertEquals( 1, count.getValue() ); }