@Test(expected=NoSuchMethodException.class)
public void getBeanMethodsOnlyGet() throws Exception {

    Method[] methods = ClassUtil.getBeanMethods(InternetPerson.class, "email2", String.class, false);
}