void () { final MyElement element = createElement("<a><generic-child>239</generic-child></a>"); final GenericDomValue<Integer> integerChild = element.getGenericChild(); assertEquals(239, (int)integerChild.getValue()); assertEquals("239", integerChild.getStringValue()); integerChild.setValue(42); assertEquals(42, (int)integerChild.getValue()); assertEquals("42", integerChild.getStringValue()); }