LoginMode { public boolean isRepository() { return isEqual(REPOSITORY.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 testRepositoryLoginMode() { assertTrue(LoginMode.REPOSITORY.isRepository()); }