public static boolean isClassName(String text) {
        if (text != null) {
            int lastIndexOf = text.lastIndexOf('.');
            if (lastIndexOf <= 0) {
                return false;
            }

            return Character.isUpperCase(text.charAt(lastIndexOf + 1));
        }

        return false;
    }
@Test
    public void testIsClassName() {
        assertFalse(StringHelper.isClassName(null));
        assertFalse(StringHelper.isClassName(""));
        assertFalse(StringHelper.isClassName(" "));
        assertFalse(StringHelper.isClassName("com.foo"));
        assertFalse(StringHelper.isClassName("com.foo.123"));

        assertTrue(StringHelper.isClassName("com.foo.MyClass"));
        assertTrue(StringHelper.isClassName("com.foo.My"));

        // Note, this is not a FQN
        assertFalse(StringHelper.isClassName("com.foo.subA"));
    }