@Test
public void testToBoolean() {

	assertTrue(Types.toBoolean(null, 1));
	assertFalse(Types.toBoolean(null, 0));
	assertFalse(Types.toBoolean(null, null));
	assertFalse(Types.toBoolean(null, ""));
	assertTrue(Types.toBoolean(null, "0"));
	assertTrue(Types.toBoolean(null, "1"));
	assertTrue(Types.toBoolean(null, "2"));
}