ClassUtils { public static boolean isGetter(String name) { return PATTERN.matcher(name).find(); }  static String extractFieldName(String name); static boolean isGetter(String name); static final boolean isPrimitiveOrAutoboxed(Class<?> type);  }
@Test public void testIsGetter() { assertThat(isGetter("getFoobar"), is(true)); assertThat(isGetter("getfoobar"), is(false)); assertThat(isGetter("doSomething"), is(false)); assertThat(isGetter("isAwesome"), is(true)); }