LoginMode { public boolean isOpenId() { return isEqual(OPEN_ID.getName()); } private  LoginMode(String loginMode); boolean isRepository(); boolean isOpenId(); String getName(); static LoginMode valueOf(String loginMode); static final LoginMode REPOSITORY; static final LoginMode OPEN_ID; }
@Test public void testOpenIdLoginMode() { assertTrue(LoginMode.OPEN_ID.isOpenId()); }