@Test
public void testShouldRenderAttribute() throws Exception {

    assertFalse(RenderKitUtils.shouldRenderAttribute(null));
    assertFalse(RenderKitUtils.shouldRenderAttribute(""));
    assertTrue(RenderKitUtils.shouldRenderAttribute("test"));
    assertTrue(RenderKitUtils.shouldRenderAttribute(new Object()));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Long.valueOf(10)));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Long.valueOf(0)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Long.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Integer.valueOf(10)));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Integer.valueOf(0)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Integer.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Short.valueOf((short) 10)));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Short.valueOf((short) 0)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Short.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Character.valueOf('a')));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Character.valueOf((char) 13)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Character.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Byte.valueOf((byte) 10)));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Byte.valueOf((byte) 0)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Byte.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Double.valueOf(10)));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Double.valueOf(0)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Double.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Float.valueOf(10)));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Float.valueOf(0)));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Float.MIN_VALUE));
    assertTrue(RenderKitUtils.shouldRenderAttribute(Boolean.TRUE));
    assertFalse(RenderKitUtils.shouldRenderAttribute(Boolean.FALSE));
}