public static boolean isBasicType(final Object object) {
        return (object instanceof Integer)
                || (object instanceof Byte)
                || (object instanceof Long)
                || (object instanceof Double)
                || (object instanceof Float)
                || (object instanceof Short)
                || (object instanceof Boolean)
                || (object instanceof CharSequence);
    }
@Test
    public void testIsBasicType() {
        Object o = 1;
        assertTrue(ObjectTypeUtils.isBasicType(o));
        o = Short.valueOf("1");
        assertTrue(ObjectTypeUtils.isBasicType(o));
        o = Long.valueOf("1");
        assertTrue(ObjectTypeUtils.isBasicType(o));
        o = new Double("1");
        assertTrue(ObjectTypeUtils.isBasicType(o));
        o = new Float("1");
        assertTrue(ObjectTypeUtils.isBasicType(o));
        o = Boolean.TRUE;
        assertTrue(ObjectTypeUtils.isBasicType(o));
        CharSequence str = "hello world";
        assertTrue(ObjectTypeUtils.isBasicType(str));
    }