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 mapToBeanConvertTest() {
        // 测试MapToBean
        final HashMap<String, Object> map = new HashMap<>();
        map.put("name", "Hippo4j");
        map.put("age", 1);
        map.put("address", "hippo4j.cn");
        map.put("size", 999);
        final Person person = BeanUtil.convert(map, Person.class);
        Assert.assertEquals("Hippo4j", person.getName());
        Assert.assertEquals(1, person.getAge());
        Assert.assertEquals("hippo4j.cn", person.getAddress());
        Assert.assertEquals(999, (int) person.getSize());
    }