@Test public void testToString1() throws Exception { SerializedMap map = new SerializedMap(Map.class, HashMap.class); map.put(literal(String.class, "key"), literal(String.class, "value")); assertThat(map.toString(), equalTo("{key:value}")); }
@Test public void testToString0() throws Exception { SerializedMap map = new SerializedMap(Map.class, HashMap.class); assertThat(map.toString(), equalTo("{}")); }