public static boolean hasUpperCase(String text) {
        if (text == null) {
            return false;
        }

        for (int i = 0; i < text.length(); i++) {
            char ch = text.charAt(i);
            if (Character.isUpperCase(ch)) {
                return true;
            }
        }

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

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

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