{
String testOne = "[r0.99967899999999998428,r-0.025334599999999998787,r0]";
String testTwo = "[[r1,r1,r1],r0]";
String testThree = "{'region_handle':[r255232, r256512], 'position':[r33.6, r33.71, r43.13], 'look_at':[r34.6, r33.71, r43.13]}";
OSD obj = NotationalLLSDOSDParser.DeserializeLLSDNotation(testOne);
Assert.assertTrue("Expected SDArray, got " + obj.getType().toString(), obj instanceof OSDArray);
OSDArray array = (OSDArray)obj;
Assert.assertTrue("Expected three contained objects, got " + array.count(), array.count() == 3);
Assert.assertTrue("Unexpected value for first real " + array.get(0).asReal(), array.get(0).asReal() > 0.9d && array.get(0).asReal() < 1.0d);
Assert.assertTrue("Unexpected value for second real " + array.get(1).asReal(), array.get(1).asReal() < 0.0d && array.get(1).asReal() > -0.03d);
Assert.assertTrue("Unexpected value for third real " + array.get(2).asReal(), array.get(2).asReal() == 0.0d);
obj = NotationalLLSDOSDParser.DeserializeLLSDNotation(testTwo);
Assert.assertTrue("Expected SDArray, got " + obj.getType().toString(), obj instanceof OSDArray);
array = (OSDArray)obj;
Assert.assertTrue("Expected two contained objects, got " + array.count(), array.count() == 2);
Assert.assertTrue("Unexpected value for real " + array.get(1).asReal(), array.get(1).asReal() == 0.0d);
obj = array.get(0);
Assert.assertTrue("Expected ArrayList, got " + obj.getType().toString(), obj instanceof OSDArray);
array = (OSDArray)obj;
Assert.assertTrue("Unexpected value(s) for nested array: " + array.get(0).asReal() + ", " + array.get(1).asReal() + ", " +
array.get(2).asReal(), array.get(0).asReal() == 1.0d && array.get(1).asReal() == 1.0d && array.get(2).asReal() == 1.0d);
obj = NotationalLLSDOSDParser.DeserializeLLSDNotation(testThree);
Assert.assertTrue("Expected LLSDMap, got " + obj.getType().toString(), obj instanceof OSDMap);
OSDMap hashtable = (OSDMap)obj;
Assert.assertTrue("Expected three contained objects, got " + hashtable.count(), hashtable.count() == 3);
Assert.assertTrue(hashtable.get("region_handle") instanceof OSDArray);
Assert.assertTrue(((OSDArray)hashtable.get("region_handle")).count() == 2);
Assert.assertTrue(hashtable.get("position") instanceof OSDArray);