### Question:
Variable { public Object asObject() { return value; } Variable(Object theValue); Object asObject(); Boolean asBoolean(); boolean asBool(); double asDouble(); int asInt(); BigDecimal asNumber(); String asString(); Timestamp asTimestamp(); String toString();  }### Answer:
@Test public void testAsObject() throws Exception { assertNull("expected null value", new Variable(null).asObject()); Object obj = new String("Hello"); Variable var = new Variable(obj); assertNotNull("expected value", var.asObject()); assertEquals("wrong value", obj.toString(), var.asObject().toString()); var = new Variable(null); assertNull("expected value", var.asObject()); assertNull("expected value", var.asString()); assertEquals("wrong value", "", var.toString()); }