484950515253545556
assertTrue(s.contains("value=\"y\"")); } @Test public void testValueMarshalling() throws JAXBException { SimpleValue value = new SimpleValue("hello"); String s = marshalObject(value); assertTrue(s.contains("<entry value=\"hello\"")); }
9596979899100101102103104
return out.toString(); } @Test public void testSimpleValueUnmarshalling() throws JAXBException { SimpleValue value; value = (SimpleValue) unmarshalString("<entry value='red' />"); assertEquals(value.getValue(), "red"); }