### Question:
CountSerDeUtils { public static String serialize( Count count ) { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString( count ); } catch ( Exception ex ) { throw new CountTransportSerDeException( "Problem in serialize() call", ex ); } }  static String serialize( Count count ); static Count deserialize( String json );  }### Answer:
@Test public void testMixedSerializer() { Count count = new Count( "Counters", 1, "c1", 1 ); String sered = CountSerDeUtils.serialize( count ); assertEquals( MIXED_TYPE_JSON, sered ); }
@Test public void testSerialize() { Count count = new Count( "Counters", "k1", "c1", 1 ); String sered = CountSerDeUtils.serialize( count ); assertEquals( SIMPLE_JSON, sered ); }