             XCTFail("error: \(error)")
         }
     }
+    
+    func testConvertAvatar() {
+        do {
+            let (parser, element) = try setupTargetElement(
+                "<avatar xmlns=\"http://jindolf.sourceforge.jp/xml/ns/401\"\n" +
+                "  avatarId=\"gerd\"\n" +
+                "  fullName=\"楽天家 ゲルト\" shortName=\"ゲルト\"\n" +
+                "  faceIconURI=\"plugin_wolf/img/face01.jpg\"\n" +
+                "/>\n"
+            )
+            let avatar = JSON(try ArchiveToJSON.AvatarElementConverter(parser: parser).convert(element))
+            XCTAssertEqual(avatar[K.AVATAR_ID], "gerd")
+            XCTAssertEqual(avatar[K.FULL_NAME], "楽天家 ゲルト")
+            XCTAssertEqual(avatar[K.SHORT_NAME], "ゲルト")
+            XCTAssertEqual(avatar[K.FACE_ICON_URI], "plugin_wolf/img/face01.jpg")
+        } catch let error {
+            XCTFail("error: \(error)")
+        }
+    }
 }

}

class ArchiveTests: XCTestCase {
    var outDir: String = ""
    
    override func setUp() {

            return
        }
        let playdata = JSON(data: playdataData)
        let landName = playdata[K.LAND_NAME].string
        XCTAssertEqual(landName, "人狼BBS:F国")

        let period0FilePath = (outDir as NSString).stringByAppendingPathComponent("period-0.json")
