public static <T> T mapToBean(Map<String, Object> map, Class<T> clazz, boolean toCamelCase) {
        if (clazz == null) {
            return null;
        }
        try {
            T newInstance = clazz.newInstance();
            return mapToBean(map, newInstance, toCamelCase);
        } catch (InstantiationException | IllegalAccessException e) {
            throw new RuntimeException("do not create instance for " + clazz.getName(), e);
        }
    }
@Test
    public void testMapToBean() {
        Map<String, Object> map = new HashMap<>();
        map.put("name", "Test");
        map.put("status_code", 12);
        Customer customer = BeanUtil.mapToBean(map, Customer.class, true);
        Assert.assertEquals("Test", customer.getName());
        Assert.assertEquals(Integer.valueOf(12), customer.getStatusCode());
    }