<@U0B8ZP13Q> ``` @Test fun testParseRegistry...
# klaxon
m
@cedric
Copy code
@Test
    fun testParseRegistry() {
        val result = Klaxon().parse<Registry>(registryString)
        val vendors = result?.vendor!!
        assertEquals("example", result.name)
        assertEquals("cool", result.foo)
        assertEquals("stuff", result.boo)
        assertEquals("example", vendors[0].name)
    }
private class Registry(val name : String,
                       val vendor : List<Vendor> = ArrayList()) {
    var foo : String = ""
    var boo : String = ""
}