UserImpl extends AuthorizableImpl implements User { @Override public boolean isDisabled() throws RepositoryException { return getDelegate().isDisabled(); } UserImpl(User dlg, AutoSaveEnabledManager mgr); @Override boolean isAdmin(); @Override boolean isSystemUser(); @NotNull @Override Credentials getCredentials(); @NotNull @Override Impersonation getImpersonation(); @Override void changePassword(@Nullable String pw); @Override void changePassword(@Nullable String pw, @NotNull String oldPw); @Override void disable(@Nullable String msg); @Override boolean isDisabled(); @Nullable @Override String getDisabledReason();  }
@Test public void testIsDisabled() throws Exception { assertEquals(dlg.isDisabled(), user.isDisabled()); verify(dlg, times(2)).isDisabled(); verify(autosaveMgr, never()).autosave(); }