" </addr>\n" +
" <addr uri='sip:room123@example.com'>\n" +
" <desc xml:lang='en'>In-room video system</desc>\n" +
" </addr>\n" +
" </reach>\n";
Reachability reachability = unmarshal(xml, Reachability.class);
Assert.assertNotNull(reachability);
Assert.assertEquals(reachability.getAddresses().size(), 2);
Assert.assertEquals(reachability.getAddresses().get(0).getUri(), URI.create("tel:+1-303-555-1212"));
Assert.assertEquals(reachability.getAddresses().get(0).getDescriptions().size(), 1);
Assert.assertEquals(reachability.getAddresses().get(0).getDescriptions().get(0).getValue(), "Conference room phone");
Assert.assertEquals(reachability.getAddresses().get(0).getDescriptions().get(0).getLanguage(), "en");
Assert.assertEquals(reachability.getAddresses().get(1).getUri(), URI.create("sip:room123@example.com"));
Assert.assertEquals(reachability.getAddresses().get(1).getDescriptions().get(0).getValue(), "In-room video system");
Assert.assertEquals(reachability.getAddresses().get(1).getDescriptions().get(0).getLanguage(), "en");
}