public void testCanDeserializeBoolean() throws Exception {
BooleanConverter bd = new BooleanConverter();
Boolean b = (Boolean)bd.unmarshal(TestUtils.createStreamReader("<boolean>1</boolean>"), null);
assertTrue(b.booleanValue());
b = (Boolean)bd.unmarshal(TestUtils.createStreamReader("<boolean>0</boolean>"), null);
assertFalse(b.booleanValue());
}
public void testShouldThrowExceptionIfBooleanContainsInvalidString() throws Exception {
BooleanConverter bd = new BooleanConverter();