public static <E> E findStaticFieldValue(Class clazz, String fieldName) {
        try {
            Field field = clazz.getField(fieldName);
            return (E) field.get(null);
        } catch (Exception ignore) {
            return null;
        }
    }
@Test
    public void test_whenClassNotExist() {
        Object value = findStaticFieldValue("com.foo.bar.Baz", "nonexisting");
        assertNull(value);
    }