void () { assertEquals(239, createElement("<a>239</a>").getInt()); assertEquals(true, createElement("<a>true</a>").getBoolean()); assertEquals("true", createElement("<a>true</a>").getBuffer().toString()); assertEquals((short)239, createElement("<a>239</a>").getShort()); assertEquals(new Long("239"), createElement("<a>239</a>").getLong()); assertEquals(new Float("239.42"), createElement("<a>239.42</a>").getFloat()); assertEquals(new BigDecimal("239.42"), createElement("<a>239.42</a>").getBigDecimal()); final MyElement bigDecimalValue = createElement("<a>239.42</a>"); bigDecimalValue.setValue(new BigDecimal("111.234")); assertEquals("111.234", bigDecimalValue.getValue()); try { createElement("<a>true</a>").getInt(); fail(); } catch (NullPointerException e) { } try { createElement("<a>42</a>").getBoolean(); fail(); } catch (NullPointerException e) { } }