@Test
public void testIsTruthy() throws Exception {

    assertNull(TNodeIf.isTruthy("1"));
    assertNull(TNodeIf.isTruthy("hi"));
    assertNull(TNodeIf.isTruthy(true));
    assertNull(TNodeIf.isTruthy(1.0));
    assertNull(TNodeIf.isTruthy(0.5f));
    assertNull(TNodeIf.isTruthy(0.5));
    assertNull(TNodeIf.isTruthy(1));
    assertNull(TNodeIf.isTruthy(new String[]{"1"}));
    assertNull(TNodeIf.isTruthy(Lists.newArrayList(2)));
    assertNull(TNodeIf.isTruthy(Lists.newArrayList(2)));
    assertNull(TNodeIf.isTruthy(Lists.newArrayList(2).iterator()));
    assertNull(TNodeIf.isTruthy(Collections.singletonMap("key", 2)));
    assertNotNull(TNodeIf.isTruthy(Collections.emptyMap()));
    assertNotNull(TNodeIf.isTruthy(Collections.emptyEnumeration()));
    assertNotNull(TNodeIf.isTruthy(Collections.emptyList()));
    assertNotNull(TNodeIf.isTruthy(Collections.emptyList().iterator()));
    assertNotNull(TNodeIf.isTruthy(0));
    assertNotNull(TNodeIf.isTruthy(0.000000000000000001));
    assertNotNull(TNodeIf.isTruthy(0.000000000000000001f));
    assertNotNull(TNodeIf.isTruthy(false));
    assertNotNull(TNodeIf.isTruthy(""));
    assertNotNull(TNodeIf.isTruthy(null));
}