public static Method setter(Class<?> o, String propertiesName) {
        if (o == null) {
            return null;
        }
        try {
            PropertyDescriptor descriptor = new PropertyDescriptor(propertiesName, o);
            return descriptor.getWriteMethod();
        } catch (IntrospectionException e) {
            throw new RuntimeException("not find setter for" + propertiesName + "in" + o.getName(), e);
        }
    }
@Test
    public void testSetter() {
        Method name = BeanUtil.setter(Customer.class, "name");
        Assert.assertEquals("setName", name.getName());
    }