FieldUtil { public static boolean isGetter(String javaMethodName) { return javaMethodName.startsWith("get") || javaMethodName.startsWith("is"); } private  FieldUtil(); static String fromGetter(String javaMethodName); static boolean isGetter(String javaMethodName);  }
@Test public void isGetter() throws Exception { assertThat(FieldUtil.isGetter("GetField")).isFalse(); assertThat(FieldUtil.isGetter("getField")).isTrue(); assertThat(FieldUtil.isGetter("IsField")).isFalse(); assertThat(FieldUtil.isGetter("isField")).isTrue(); }