package Ġua . val d _ zx . simp lex ml . k sp . test . path Ċ Ċ import Ġua . val d _ zx . simp lex ml . k sp . Simple Xml Ċ import Ġua . val d _ zx . simp lex ml . k sp . test . cust omp ackage . Test Serial izers En rol ment Ċ import Ġkotlin . js . Js Name Ċ import Ġkotlin . test . Before Test Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertEquals Ċ Ċ class ĠPath Test Ġ{ ĊĊĠĠĠ Ġ@ Before Test ĊĠĠĠ Ġfun Ġinit () Ġ{ ĊĠĠĠĠĠĠĠ ĠTest Serial izers En rol ment . en rol () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Js Name (" Element With One Layer Path Test ") ĊĠĠĠ Ġfun Ġ` Element With One Layer Path Ġserialize Ġdeserialize Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Ġ= ĠElement With One Layer Path (" Element With One Layer Path ") ĊĠĠĠĠĠĠĠ Ġval Ġxml Ġ= ĠSimple Xml . serialize ( bean ) ĊĠĠĠĠĠĠĠ Ġprintln ( xml ) ĊĠĠĠĠĠĠĠ Ġval Ġdeserialized Bean : ĠElement With One Layer Path Ġ= ĠSimple Xml . deserialize ( xml ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( bean , Ġdeserialized Bean ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Js Name (" Element With Two Layer Path Test ") ĊĠĠĠ Ġfun Ġ` Element With Two Layer Path Ġserialize Ġdeserialize Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Ġ= ĠElement With Two Layer Path (" Element With Two Layer Path ") ĊĠĠĠĠĠĠĠ Ġval Ġxml Ġ= ĠSimple Xml . serialize ( bean ) ĊĠĠĠĠĠĠĠ Ġprintln ( xml ) ĊĠĠĠĠĠĠĠ Ġval Ġdeserialized Bean : ĠElement With Two Layer Path Ġ= ĠSimple Xml . deserialize ( xml ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( bean , Ġdeserialized Bean ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Js Name (" Element With Three Layer Path Test ") ĊĠĠĠ Ġfun Ġ` Element With Three Layer Path Ġserialize Ġdeserialize Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Ġ= ĠElement With Three Layer Path (" Element With Three Layer Path ") ĊĠĠĠĠĠĠĠ Ġval Ġxml Ġ= ĠSimple Xml . serialize ( bean ) ĊĠĠĠĠĠĠĠ Ġprintln ( xml ) ĊĠĠĠĠĠĠĠ Ġval Ġdeserialized Bean : ĠElement With Three Layer Path Ġ= ĠSimple Xml . deserialize ( xml ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( bean , Ġdeserialized Bean ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Js Name (" Two Elements On First Layer Path Test ") ĊĠĠĠ Ġfun Ġ` Two Elements On First Layer Path Ġserialize Ġdeserialize Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Ġ= ĠTwo Elements On First Layer Path (" Data 1 ", Ġ" Data 2 ") ĊĠĠĠĠĠĠĠ Ġval Ġxml Ġ= ĠSimple Xml . serialize ( bean ) ĊĠĠĠĠĠĠĠ Ġprintln ( xml ) ĊĠĠĠĠĠĠĠ Ġval Ġdeserialized Bean : ĠTwo Elements On First Layer Path Ġ= ĠSimple Xml . deserialize ( xml ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( bean , Ġdeserialized Bean ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Js Name (" Two Elements On Diff Layers Path Test ") ĊĠĠĠ Ġfun Ġ` Two Elements On Diff Layers Path Ġserialize Ġdeserialize Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Ġ= ĠTwo Elements On Diff Layers Path (" Data 1 ", Ġ" Data 2 ") ĊĠĠĠĠĠĠĠ Ġval Ġxml Ġ= ĠSimple Xml . serialize ( bean ) ĊĠĠĠĠĠĠĠ Ġprintln ( xml ) ĊĠĠĠĠĠĠĠ Ġval Ġdeserialized Bean : ĠTwo Elements On Diff Layers Path Ġ= ĠSimple Xml . deserialize ( xml ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( bean , Ġdeserialized Bean ) ĊĠĠĠ Ġ} Ċ }