@@ -274,23 +274,19 @@ static Map<ObjectNode, byte[]> maps() {
274274 /* 人 */
275275 0x43 , (byte ) 0xe4 , (byte ) 0xba , (byte ) 0xba });
276276
277- /*
278- * This currently isn't working as assertEquals thinks all arrays are
279- * different. Usually you would just use assertArrayEquals, but that
280- * obviously doesn't work here
281- */
282- // Map<String, Object> guess = new HashMap<String, Object>();
283- // guess.put("languages", new String[] { "en", "zh" });
284- // maps.put(guess, new byte[] { (byte) 0b11100001,/* languages */
285- // 0b01001001, 0b01101100, 0b01100001, 0b01101110, 0b01100111,
286- // 0b01110101,
287- // 0b01100001, 0b01100111, 0b01100101, 0b01110011,
288- // /* array */
289- // 0b00000010, 0b00000100,
290- // /* en */
291- // 0b01000010, 0b01100101, 0b01101110,
292- // /* zh */
293- // 0b01000010, 0b01111010, 0b01101000 });
277+ ObjectNode guess = om .createObjectNode ();
278+ ArrayNode languages = om .createArrayNode ();
279+ languages .add ("en" );
280+ languages .add ("zh" );
281+ guess .put ("languages" , languages );
282+ maps .put (guess , new byte [] { (byte ) 0xe1 ,/* languages */
283+ 0x49 , 0x6c , 0x61 , 0x6e , 0x67 , 0x75 , 0x61 , 0x67 , 0x65 , 0x73 ,
284+ /* array */
285+ 0x2 , 0x4 ,
286+ /* en */
287+ 0x42 , 0x65 , 0x6e ,
288+ /* zh */
289+ 0x42 , 0x7a , 0x68 });
294290
295291 return maps ;
296292 }
0 commit comments