assertEquals(Boolean.FALSE, ObjectHelper.toBoolean(Integer.valueOf("0")));
assertEquals(null, ObjectHelper.toBoolean(new Date()));
}
public void testIteratorWithMessage() {
Message msg = new DefaultMessage();
msg.setBody("a,b,c");
Iterator<String> it = CastUtils.cast(ObjectHelper.createIterator(msg));
assertEquals("a", it.next());
assertEquals("b", it.next());
assertEquals("c", it.next());