public static <T, S> T convert(S source, Class<T> clazz) {
        return Optional.ofNullable(source)
                .map(each -> BEAN_MAPPER_BUILDER.map(each, clazz))
                .orElse(null);
    }
@Test
    public void copyPropertiesBeanToMapTest() {
        // 测试BeanToMap
        final Person person = new Person();
        person.setName("Hippo4j");

        final Map<?, ?> convert = BeanUtil.convert(person, Map.class);
        Assert.assertEquals("Hippo4j", convert.get("name"));

        // static属性应被忽略
        Assert.assertFalse(convert.containsKey("STATIC_NAME"));
    }