@Test
public void testGetPropertyGetterMethod() throws Exception {

    Method method = TestReflect.class.getMethod("getS");
    Assert.assertEquals(method, getPropertyGetterMethod(TestReflect.class, "s"));
    method = TestReflect.class.getMethod("isB");
    Assert.assertEquals(method, getPropertyGetterMethod(TestReflect.class, "b"));
    boolean error = false;
    try {
        getPropertyGetterMethod(TestReflect.class, "xxx");
    } catch (Exception e) {
        error = true;
    }
    Assert.assertTrue(error);
}